
/* A Bison parser, made by GNU Bison 2.4.1.  */

/* Skeleton implementation for Bison's Yacc-like parsers in C
   
      Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
   Free Software Foundation, Inc.
   
   This program is free software: you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation, either version 3 of the License, or
   (at your option) any later version.
   
   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.
   
   You should have received a copy of the GNU General Public License
   along with this program.  If not, see <http://www.gnu.org/licenses/>.  */

/* As a special exception, you may create a larger work that contains
   part or all of the Bison parser skeleton and distribute that work
   under terms of your choice, so long as that work isn't itself a
   parser generator using the skeleton or a modified version thereof
   as a parser skeleton.  Alternatively, if you modify or redistribute
   the parser skeleton itself, you may (at your option) remove this
   special exception, which will cause the skeleton and the resulting
   Bison output files to be licensed under the GNU General Public
   License without this special exception.
   
   This special exception was added by the Free Software Foundation in
   version 2.2 of Bison.  */

/* C LALR(1) parser skeleton written by Richard Stallman, by
   simplifying the original so-called "semantic" parser.  */

/* All symbols defined below should begin with yy or YY, to avoid
   infringing on user name space.  This should be done even for local
   variables, as they might otherwise be expanded by user macros.
   There are some unavoidable exceptions within include files to
   define necessary library symbols; they are noted "INFRINGES ON
   USER NAME SPACE" below.  */

/* Identify Bison output.  */
#define YYBISON 1

/* Bison version.  */
#define YYBISON_VERSION "2.4.1"

/* Skeleton name.  */
#define YYSKELETON_NAME "yacc.c"

/* Pure parsers.  */
#define YYPURE 0

/* Push parsers.  */
#define YYPUSH 0

/* Pull parsers.  */
#define YYPULL 1

/* Using locations.  */
#define YYLSP_NEEDED 0



/* Copy the first part of user declarations.  */

/* Line 189 of yacc.c  */
#line 1 "parser.y"

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "y.tab.h"
#include "system.h"
#include "symtable1.c"
#include "code.c"

// #include "symtable.c"

extern char yytext[];
int DEBUGP=0;
int error_flag=0;
extern int column;
extern int linenumber;
extern FILE *yyin;
int currentScope=0,internalScope=0;
int declaration_flag=0,parameter_flag=0,function=0;
int counter=0;
struct Attribute *temp_inherited;
struct Attribute *temp_Parameters;
struct Attribute *temp_expression;
char *funcName;
char *templabel;
int size=0,oldsize=0;
int assign_flag=0;
FILE  * fcgFile , *icgFile ;

char *start[1000],*end[1000],*funcEndLabel,currentDepth=0;
char *printcode;
int empty_func=0;
int switch_flag=0;
char *icg,*fcg,*icg1,s1[10000];



/* Line 189 of yacc.c  */
#line 111 "y.tab.c"

/* Enabling traces.  */
#ifndef YYDEBUG
# define YYDEBUG 0
#endif

/* Enabling verbose error messages.  */
#ifdef YYERROR_VERBOSE
# undef YYERROR_VERBOSE
# define YYERROR_VERBOSE 1
#else
# define YYERROR_VERBOSE 0
#endif

/* Enabling the token table.  */
#ifndef YYTOKEN_TABLE
# define YYTOKEN_TABLE 0
#endif


/* Tokens.  */
#ifndef YYTOKENTYPE
# define YYTOKENTYPE
   /* Put the tokens into the symbol table, so that GDB and other debuggers
      know about them.  */
   enum yytokentype {
     DECIMALFLOAT = 258,
     HEXADECIMAL = 259,
     LONGINTEGER = 260,
     INTEGER = 261,
     STRING = 262,
     HEXLITERAL = 263,
     ESCAPECHAR = 264,
     CHARACTER = 265,
     DOUBLEVAL = 266,
     FLOATVAL = 267,
     DECIMALDOUBLE = 268,
     IFX = 269,
     ELSE = 270,
     LONGHEXADECIMAL = 271,
     IDENTIFIER = 272,
     SIZEOF = 273,
     PTR_OP = 274,
     INC_OP = 275,
     DEC_OP = 276,
     LEFT_OP = 277,
     RIGHT_OP = 278,
     LE_OP = 279,
     GE_OP = 280,
     EQ_OP = 281,
     NE_OP = 282,
     AND_OP = 283,
     OR_OP = 284,
     MUL_ASSIGN = 285,
     DIV_ASSIGN = 286,
     MOD_ASSIGN = 287,
     ADD_ASSIGN = 288,
     SUB_ASSIGN = 289,
     LEFT_ASSIGN = 290,
     RIGHT_ASSIGN = 291,
     AND_ASSIGN = 292,
     XOR_ASSIGN = 293,
     OR_ASSIGN = 294,
     TYPE_NAME = 295,
     TYPEDEF = 296,
     EXTERN = 297,
     STATIC = 298,
     AUTO = 299,
     REGISTER = 300,
     CHAR = 301,
     SHORT = 302,
     INT = 303,
     LONG = 304,
     SIGNED = 305,
     UNSIGNED = 306,
     FLOAT = 307,
     DOUBLE = 308,
     CONST = 309,
     VOLATILE = 310,
     VOID = 311,
     STRUCT = 312,
     UNION = 313,
     ENUM = 314,
     ELLIPSIS = 315,
     CASE = 316,
     DEFAULT = 317,
     IF = 318,
     SWITCH = 319,
     WHILE = 320,
     DO = 321,
     FOR = 322,
     GOTO = 323,
     CONTINUE = 324,
     BREAK = 325,
     RETURN = 326
   };
#endif
/* Tokens.  */
#define DECIMALFLOAT 258
#define HEXADECIMAL 259
#define LONGINTEGER 260
#define INTEGER 261
#define STRING 262
#define HEXLITERAL 263
#define ESCAPECHAR 264
#define CHARACTER 265
#define DOUBLEVAL 266
#define FLOATVAL 267
#define DECIMALDOUBLE 268
#define IFX 269
#define ELSE 270
#define LONGHEXADECIMAL 271
#define IDENTIFIER 272
#define SIZEOF 273
#define PTR_OP 274
#define INC_OP 275
#define DEC_OP 276
#define LEFT_OP 277
#define RIGHT_OP 278
#define LE_OP 279
#define GE_OP 280
#define EQ_OP 281
#define NE_OP 282
#define AND_OP 283
#define OR_OP 284
#define MUL_ASSIGN 285
#define DIV_ASSIGN 286
#define MOD_ASSIGN 287
#define ADD_ASSIGN 288
#define SUB_ASSIGN 289
#define LEFT_ASSIGN 290
#define RIGHT_ASSIGN 291
#define AND_ASSIGN 292
#define XOR_ASSIGN 293
#define OR_ASSIGN 294
#define TYPE_NAME 295
#define TYPEDEF 296
#define EXTERN 297
#define STATIC 298
#define AUTO 299
#define REGISTER 300
#define CHAR 301
#define SHORT 302
#define INT 303
#define LONG 304
#define SIGNED 305
#define UNSIGNED 306
#define FLOAT 307
#define DOUBLE 308
#define CONST 309
#define VOLATILE 310
#define VOID 311
#define STRUCT 312
#define UNION 313
#define ENUM 314
#define ELLIPSIS 315
#define CASE 316
#define DEFAULT 317
#define IF 318
#define SWITCH 319
#define WHILE 320
#define DO 321
#define FOR 322
#define GOTO 323
#define CONTINUE 324
#define BREAK 325
#define RETURN 326




#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
typedef union YYSTYPE
{

/* Line 214 of yacc.c  */
#line 39 "parser.y"

	int intValue;
	long longIntValue;
	float floatValue;
	double doubleValue;
	char charValue;
	char *string;
	struct SymEntry *sym;
						    //char *tree;	
	struct Attribute *attr;
	//struct SynAttribute *synattr;



/* Line 214 of yacc.c  */
#line 304 "y.tab.c"
} YYSTYPE;
# define YYSTYPE_IS_TRIVIAL 1
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
# define YYSTYPE_IS_DECLARED 1
#endif


/* Copy the second part of user declarations.  */


/* Line 264 of yacc.c  */
#line 316 "y.tab.c"

#ifdef short
# undef short
#endif

#ifdef YYTYPE_UINT8
typedef YYTYPE_UINT8 yytype_uint8;
#else
typedef unsigned char yytype_uint8;
#endif

#ifdef YYTYPE_INT8
typedef YYTYPE_INT8 yytype_int8;
#elif (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
typedef signed char yytype_int8;
#else
typedef short int yytype_int8;
#endif

#ifdef YYTYPE_UINT16
typedef YYTYPE_UINT16 yytype_uint16;
#else
typedef unsigned short int yytype_uint16;
#endif

#ifdef YYTYPE_INT16
typedef YYTYPE_INT16 yytype_int16;
#else
typedef short int yytype_int16;
#endif

#ifndef YYSIZE_T
# ifdef __SIZE_TYPE__
#  define YYSIZE_T __SIZE_TYPE__
# elif defined size_t
#  define YYSIZE_T size_t
# elif ! defined YYSIZE_T && (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
#  include <stddef.h> /* INFRINGES ON USER NAME SPACE */
#  define YYSIZE_T size_t
# else
#  define YYSIZE_T unsigned int
# endif
#endif

#define YYSIZE_MAXIMUM ((YYSIZE_T) -1)

#ifndef YY_
# if YYENABLE_NLS
#  if ENABLE_NLS
#   include <libintl.h> /* INFRINGES ON USER NAME SPACE */
#   define YY_(msgid) dgettext ("bison-runtime", msgid)
#  endif
# endif
# ifndef YY_
#  define YY_(msgid) msgid
# endif
#endif

/* Suppress unused-variable warnings by "using" E.  */
#if ! defined lint || defined __GNUC__
# define YYUSE(e) ((void) (e))
#else
# define YYUSE(e) /* empty */
#endif

/* Identity function, used to suppress warnings about constant conditions.  */
#ifndef lint
# define YYID(n) (n)
#else
#if (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
static int
YYID (int yyi)
#else
static int
YYID (yyi)
    int yyi;
#endif
{
  return yyi;
}
#endif

#if ! defined yyoverflow || YYERROR_VERBOSE

/* The parser invokes alloca or malloc; define the necessary symbols.  */

# ifdef YYSTACK_USE_ALLOCA
#  if YYSTACK_USE_ALLOCA
#   ifdef __GNUC__
#    define YYSTACK_ALLOC __builtin_alloca
#   elif defined __BUILTIN_VA_ARG_INCR
#    include <alloca.h> /* INFRINGES ON USER NAME SPACE */
#   elif defined _AIX
#    define YYSTACK_ALLOC __alloca
#   elif defined _MSC_VER
#    include <malloc.h> /* INFRINGES ON USER NAME SPACE */
#    define alloca _alloca
#   else
#    define YYSTACK_ALLOC alloca
#    if ! defined _ALLOCA_H && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
#     include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
#     ifndef _STDLIB_H
#      define _STDLIB_H 1
#     endif
#    endif
#   endif
#  endif
# endif

# ifdef YYSTACK_ALLOC
   /* Pacify GCC's `empty if-body' warning.  */
#  define YYSTACK_FREE(Ptr) do { /* empty */; } while (YYID (0))
#  ifndef YYSTACK_ALLOC_MAXIMUM
    /* The OS might guarantee only one guard page at the bottom of the stack,
       and a page size can be as small as 4096 bytes.  So we cannot safely
       invoke alloca (N) if N exceeds 4096.  Use a slightly smaller number
       to allow for a few compiler-allocated temporary stack slots.  */
#   define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */
#  endif
# else
#  define YYSTACK_ALLOC YYMALLOC
#  define YYSTACK_FREE YYFREE
#  ifndef YYSTACK_ALLOC_MAXIMUM
#   define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM
#  endif
#  if (defined __cplusplus && ! defined _STDLIB_H \
       && ! ((defined YYMALLOC || defined malloc) \
	     && (defined YYFREE || defined free)))
#   include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
#   ifndef _STDLIB_H
#    define _STDLIB_H 1
#   endif
#  endif
#  ifndef YYMALLOC
#   define YYMALLOC malloc
#   if ! defined malloc && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */
#   endif
#  endif
#  ifndef YYFREE
#   define YYFREE free
#   if ! defined free && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
void free (void *); /* INFRINGES ON USER NAME SPACE */
#   endif
#  endif
# endif
#endif /* ! defined yyoverflow || YYERROR_VERBOSE */


#if (! defined yyoverflow \
     && (! defined __cplusplus \
	 || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))

/* A type that is properly aligned for any stack member.  */
union yyalloc
{
  yytype_int16 yyss_alloc;
  YYSTYPE yyvs_alloc;
};

/* The size of the maximum gap between one aligned stack and the next.  */
# define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1)

/* The size of an array large to enough to hold all stacks, each with
   N elements.  */
# define YYSTACK_BYTES(N) \
     ((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \
      + YYSTACK_GAP_MAXIMUM)

/* Copy COUNT objects from FROM to TO.  The source and destination do
   not overlap.  */
# ifndef YYCOPY
#  if defined __GNUC__ && 1 < __GNUC__
#   define YYCOPY(To, From, Count) \
      __builtin_memcpy (To, From, (Count) * sizeof (*(From)))
#  else
#   define YYCOPY(To, From, Count)		\
      do					\
	{					\
	  YYSIZE_T yyi;				\
	  for (yyi = 0; yyi < (Count); yyi++)	\
	    (To)[yyi] = (From)[yyi];		\
	}					\
      while (YYID (0))
#  endif
# endif

/* Relocate STACK from its old location to the new one.  The
   local variables YYSIZE and YYSTACKSIZE give the old and new number of
   elements in the stack, and YYPTR gives the new location of the
   stack.  Advance YYPTR to a properly aligned location for the next
   stack.  */
# define YYSTACK_RELOCATE(Stack_alloc, Stack)				\
    do									\
      {									\
	YYSIZE_T yynewbytes;						\
	YYCOPY (&yyptr->Stack_alloc, Stack, yysize);			\
	Stack = &yyptr->Stack_alloc;					\
	yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
	yyptr += yynewbytes / sizeof (*yyptr);				\
      }									\
    while (YYID (0))

#endif

/* YYFINAL -- State number of the termination state.  */
#define YYFINAL  66
/* YYLAST -- Last index in YYTABLE.  */
#define YYLAST   1422

/* YYNTOKENS -- Number of terminals.  */
#define YYNTOKENS  96
/* YYNNTS -- Number of nonterminals.  */
#define YYNNTS  82
/* YYNRULES -- Number of rules.  */
#define YYNRULES  253
/* YYNRULES -- Number of states.  */
#define YYNSTATES  413

/* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX.  */
#define YYUNDEFTOK  2
#define YYMAXUTOK   326

#define YYTRANSLATE(YYX)						\
  ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)

/* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX.  */
static const yytype_uint8 yytranslate[] =
{
       0,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,    75,     2,     2,     2,    84,    93,     2,
      85,    88,    82,    80,    92,    81,    91,    83,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,    77,    72,
      78,    73,    79,    95,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,    86,     2,    89,    76,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,    87,    74,    90,    94,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     1,     2,     3,     4,
       5,     6,     7,     8,     9,    10,    11,    12,    13,    14,
      15,    16,    17,    18,    19,    20,    21,    22,    23,    24,
      25,    26,    27,    28,    29,    30,    31,    32,    33,    34,
      35,    36,    37,    38,    39,    40,    41,    42,    43,    44,
      45,    46,    47,    48,    49,    50,    51,    52,    53,    54,
      55,    56,    57,    58,    59,    60,    61,    62,    63,    64,
      65,    66,    67,    68,    69,    70,    71
};

#if YYDEBUG
/* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
   YYRHS.  */
static const yytype_uint16 yyprhs[] =
{
       0,     0,     3,     4,     5,     7,     9,    11,    13,    15,
      17,    19,    21,    23,    25,    27,    29,    31,    33,    35,
      39,    41,    46,    50,    55,    59,    63,    66,    69,    71,
      75,    77,    80,    83,    86,    89,    94,    96,    98,   100,
     102,   104,   106,   108,   113,   115,   119,   123,   127,   129,
     133,   137,   139,   143,   147,   149,   153,   157,   161,   165,
     167,   171,   175,   177,   181,   183,   187,   189,   193,   195,
     199,   201,   205,   207,   213,   215,   219,   221,   223,   225,
     227,   229,   231,   233,   235,   237,   239,   241,   243,   245,
     249,   251,   254,   257,   261,   265,   267,   269,   271,   274,
     277,   280,   283,   286,   289,   293,   297,   301,   305,   309,
     313,   315,   319,   323,   325,   327,   329,   331,   333,   335,
     337,   339,   341,   343,   345,   347,   349,   351,   353,   355,
     357,   359,   365,   370,   373,   375,   377,   379,   382,   386,
     389,   391,   394,   396,   398,   402,   404,   407,   411,   416,
     422,   425,   427,   431,   433,   437,   439,   441,   444,   446,
     447,   448,   450,   454,   459,   463,   470,   477,   481,   483,
     486,   489,   493,   495,   498,   500,   504,   506,   510,   513,
     516,   518,   520,   524,   526,   529,   531,   533,   536,   540,
     543,   547,   551,   556,   559,   563,   567,   572,   574,   578,
     583,   585,   589,   591,   593,   595,   597,   599,   601,   605,
     610,   614,   617,   623,   629,   631,   634,   636,   639,   641,
     644,   646,   649,   651,   654,   657,   658,   659,   660,   661,
     667,   675,   685,   693,   703,   704,   714,   715,   726,   730,
     733,   736,   739,   743,   745,   747,   750,   752,   754,   755,
     756,   765,   773,   781
};

/* YYRHS -- A `-1'-separated list of the rules' RHS.  */
static const yytype_int16 yyrhs[] =
{
     172,     0,    -1,    -1,    -1,    17,    -1,     6,    -1,     5,
      -1,     4,    -1,    16,    -1,     3,    -1,    13,    -1,    12,
      -1,    11,    -1,    10,    -1,     9,    -1,     8,    -1,     7,
      -1,    99,    -1,   100,    -1,    85,   121,    88,    -1,   101,
      -1,   102,    86,   121,    89,    -1,   102,    85,    88,    -1,
     102,    85,   103,    88,    -1,   102,    91,    99,    -1,   102,
      19,    99,    -1,   102,    20,    -1,   102,    21,    -1,   118,
      -1,   103,    92,   118,    -1,   102,    -1,    20,   104,    -1,
      21,   104,    -1,   105,   106,    -1,    18,   104,    -1,    18,
      85,   150,    88,    -1,    93,    -1,    82,    -1,    80,    -1,
      81,    -1,    94,    -1,    75,    -1,   104,    -1,    85,   150,
      88,   106,    -1,   106,    -1,   107,    82,   106,    -1,   107,
      83,   106,    -1,   107,    84,   106,    -1,   107,    -1,   108,
      80,   107,    -1,   108,    81,   107,    -1,   108,    -1,   109,
      22,   108,    -1,   109,    23,   108,    -1,   109,    -1,   110,
      78,   109,    -1,   110,    79,   109,    -1,   110,    24,   109,
      -1,   110,    25,   109,    -1,   110,    -1,   111,    26,   110,
      -1,   111,    27,   110,    -1,   111,    -1,   112,    93,   111,
      -1,   112,    -1,   113,    76,   112,    -1,   113,    -1,   114,
      74,   113,    -1,   114,    -1,   115,    28,   114,    -1,   115,
      -1,   116,    29,   115,    -1,   116,    -1,   116,    95,   121,
      77,   117,    -1,   117,    -1,   104,   120,   118,    -1,    73,
      -1,   119,    -1,    30,    -1,    31,    -1,    32,    -1,    33,
      -1,    34,    -1,    35,    -1,    36,    -1,    37,    -1,    38,
      -1,    39,    -1,   118,    -1,   121,    92,   118,    -1,   117,
      -1,   124,    72,    -1,   124,     1,    -1,   124,   125,    72,
      -1,   124,   125,     1,    -1,   139,    -1,   128,    -1,   127,
      -1,   139,   128,    -1,   128,   139,    -1,   128,   127,    -1,
     127,   128,    -1,   127,   139,    -1,   139,   127,    -1,   139,
     128,   127,    -1,   139,   127,   128,    -1,   127,   128,   139,
      -1,   127,   139,   128,    -1,   128,   139,   127,    -1,   128,
     127,   139,    -1,   126,    -1,   125,    92,   126,    -1,   140,
     119,   153,    -1,   140,    -1,    41,    -1,    42,    -1,    43,
      -1,    44,    -1,    45,    -1,    56,    -1,    46,    -1,    47,
      -1,    48,    -1,    49,    -1,    52,    -1,    53,    -1,    50,
      -1,    51,    -1,   129,    -1,   136,    -1,    40,    -1,   130,
      99,    87,   131,    90,    -1,   130,    87,   131,    90,    -1,
     130,    99,    -1,    57,    -1,    58,    -1,   132,    -1,   131,
     132,    -1,   133,   134,    72,    -1,   128,   133,    -1,   128,
      -1,   139,   133,    -1,   139,    -1,   135,    -1,   134,    92,
     135,    -1,   140,    -1,    77,   122,    -1,   140,    77,   122,
      -1,    59,    87,   137,    90,    -1,    59,    99,    87,   137,
      90,    -1,    59,    99,    -1,   138,    -1,   137,    92,   138,
      -1,    99,    -1,    99,    73,   122,    -1,    54,    -1,    55,
      -1,   144,   140,    -1,   143,    -1,    -1,    -1,    99,    -1,
      85,   140,    88,    -1,   143,    86,   122,    89,    -1,   143,
      86,    89,    -1,   143,    85,   141,   146,   142,    88,    -1,
     143,    85,   141,   149,   142,    88,    -1,   143,    85,    88,
      -1,    82,    -1,    82,   145,    -1,    82,   144,    -1,    82,
     145,   144,    -1,   139,    -1,   145,   139,    -1,   147,    -1,
     147,    92,    60,    -1,   148,    -1,   147,    92,   148,    -1,
     124,   140,    -1,   124,   151,    -1,   124,    -1,    99,    -1,
     149,    92,    99,    -1,   133,    -1,   133,   151,    -1,   144,
      -1,   152,    -1,   144,   152,    -1,    85,   151,    88,    -1,
      86,    89,    -1,    86,   122,    89,    -1,   152,    86,    89,
      -1,   152,    86,   122,    89,    -1,    85,    88,    -1,    85,
     146,    88,    -1,   152,    85,    88,    -1,   152,    85,   146,
      88,    -1,   118,    -1,    87,   154,    90,    -1,    87,   154,
      92,    90,    -1,   153,    -1,   154,    92,   153,    -1,   156,
      -1,   157,    -1,   162,    -1,   167,    -1,   168,    -1,   171,
      -1,    99,    77,   155,    -1,    61,   122,    77,   155,    -1,
      62,    77,   155,    -1,    87,    90,    -1,    87,    97,   158,
      98,    90,    -1,    87,    97,   159,    98,    90,    -1,   160,
      -1,   160,   159,    -1,   161,    -1,   161,   158,    -1,   123,
      -1,   160,   123,    -1,   155,    -1,   161,   155,    -1,    72,
      -1,   121,    72,    -1,   121,     1,    -1,    -1,    -1,    -1,
      -1,    63,    85,   121,    88,   155,    -1,    63,    85,   121,
      88,   155,    15,   155,    -1,    64,   163,    85,   121,    88,
     165,   155,   166,   164,    -1,    65,   163,    85,   121,    88,
     155,   164,    -1,    66,   163,   155,    65,    85,   121,    88,
      72,   164,    -1,    -1,    67,   163,    85,   162,   162,   169,
      88,   155,   164,    -1,    -1,    67,   163,    85,   162,   162,
     121,   170,    88,   155,   164,    -1,    68,    99,    72,    -1,
      69,    72,    -1,    70,    72,    -1,    71,    72,    -1,    71,
     121,    72,    -1,   173,    -1,   174,    -1,   173,   174,    -1,
     177,    -1,   123,    -1,    -1,    -1,   124,   140,   160,   175,
     163,   157,   164,   176,    -1,   124,   140,   175,   163,   157,
     164,   176,    -1,   140,   160,   175,   163,   157,   164,   176,
      -1,   140,   175,   163,   157,   164,   176,    -1
};

/* YYRLINE[YYN] -- source line where rule number YYN was defined.  */
static const yytype_uint16 yyrline[] =
{
       0,   168,   168,   178,   195,   256,   269,   281,   293,   305,
     317,   329,   341,   353,   369,   385,   399,   416,   430,   479,
     490,   497,   572,   619,   738,   744,   750,   794,   843,   856,
     874,   881,   917,   957,  1110,  1122,  1137,  1144,  1151,  1158,
    1165,  1172,  1182,  1189,  1247,  1254,  1298,  1340,  1385,  1392,
    1431,  1470,  1477,  1510,  1547,  1554,  1634,  1721,  1764,  1815,
    1822,  1869,  1915,  1922,  1963,  1970,  2009,  2016,  2056,  2063,
    2117,  2124,  2176,  2183,  2198,  2205,  2509,  2515,  2522,  2530,
    2538,  2546,  2554,  2562,  2570,  2578,  2586,  2594,  2605,  2617,
    2630,  2640,  2664,  2687,  2710,  2737,  2748,  2759,  2769,  2779,
    2789,  2799,  2809,  2819,  2829,  2839,  2849,  2859,  2869,  2879,
    2892,  2899,  2911,  3053,  3077,  3088,  3099,  3110,  3121,  3134,
    3150,  3165,  3180,  3195,  3210,  3225,  3240,  3255,  3270,  3278,
    3293,  3311,  3319,  3327,  3338,  3355,  3375,  3383,  3394,  3405,
    3415,  3422,  3432,  3445,  3453,  3464,  3472,  3480,  3491,  3499,
    3507,  3518,  3526,  3537,  3545,  3556,  3570,  3586,  3595,  3606,
    3612,  3618,  3672,  3680,  3746,  3785,  3842,  3854,  3891,  3904,
    3912,  3920,  3931,  3938,  3950,  3957,  3969,  3979,  3991,  4009,
    4018,  4028,  4038,  4050,  4058,  4070,  4077,  4084,  4095,  4106,
    4115,  4133,  4143,  4153,  4163,  4173,  4183,  4196,  4203,  4224,
    4248,  4266,  4280,  4287,  4294,  4301,  4308,  4315,  4325,  4333,
    4376,  4397,  4410,  4417,  4427,  4434,  4451,  4458,  4475,  4482,
    4499,  4506,  4524,  4536,  4543,  4556,  4564,  4576,  4584,  4590,
    4618,  4654,  4698,  4736,  4764,  4764,  4802,  4802,  4847,  4859,
    4882,  4905,  4936,  4996,  5003,  5010,  5022,  5029,  5039,  5100,
    5108,  5146,  5181,  5220
};
#endif

#if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE
/* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
   First, the terminals, then, starting at YYNTOKENS, nonterminals.  */
static const char *const yytname[] =
{
  "$end", "error", "$undefined", "DECIMALFLOAT", "HEXADECIMAL",
  "LONGINTEGER", "INTEGER", "STRING", "HEXLITERAL", "ESCAPECHAR",
  "CHARACTER", "DOUBLEVAL", "FLOATVAL", "DECIMALDOUBLE", "IFX", "ELSE",
  "LONGHEXADECIMAL", "IDENTIFIER", "SIZEOF", "PTR_OP", "INC_OP", "DEC_OP",
  "LEFT_OP", "RIGHT_OP", "LE_OP", "GE_OP", "EQ_OP", "NE_OP", "AND_OP",
  "OR_OP", "MUL_ASSIGN", "DIV_ASSIGN", "MOD_ASSIGN", "ADD_ASSIGN",
  "SUB_ASSIGN", "LEFT_ASSIGN", "RIGHT_ASSIGN", "AND_ASSIGN", "XOR_ASSIGN",
  "OR_ASSIGN", "TYPE_NAME", "TYPEDEF", "EXTERN", "STATIC", "AUTO",
  "REGISTER", "CHAR", "SHORT", "INT", "LONG", "SIGNED", "UNSIGNED",
  "FLOAT", "DOUBLE", "CONST", "VOLATILE", "VOID", "STRUCT", "UNION",
  "ENUM", "ELLIPSIS", "CASE", "DEFAULT", "IF", "SWITCH", "WHILE", "DO",
  "FOR", "GOTO", "CONTINUE", "BREAK", "RETURN", "';'", "'='", "'|'", "'!'",
  "'^'", "':'", "'<'", "'>'", "'+'", "'-'", "'*'", "'/'", "'%'", "'('",
  "'['", "'{'", "')'", "']'", "'}'", "'.'", "','", "'&'", "'~'", "'?'",
  "$accept", "new_scope", "finish_scope", "identifier", "constant",
  "primary_expression", "postfix_expression", "argument_expression_list",
  "unary_expression", "unary_operator", "cast_expression",
  "multiplicative_expression", "additive_expression", "shift_expression",
  "relational_expression", "equality_expression", "and_expression",
  "exclusive_or_expression", "inclusive_or_expression",
  "logical_and_expression", "logical_or_expression",
  "conditional_expression", "assignment_expression", "equal_to",
  "assignment_operator", "expression", "constant_expression",
  "declaration", "declaration_specifiers", "init_declarator_list",
  "init_declarator", "storage_class_specifier", "type_specifier",
  "struct_or_union_specifier", "struct_or_union",
  "struct_declaration_list", "struct_declaration",
  "specifier_qualifier_list", "struct_declarator_list",
  "struct_declarator", "enum_specifier", "enumerator_list", "enumerator",
  "type_qualifier", "declarator", "set_parameter_flag",
  "unset_parameter_flag", "direct_declarator", "pointer",
  "type_qualifier_list", "parameter_type_list", "parameter_list",
  "parameter_declaration", "identifier_list", "type_name",
  "abstract_declarator", "direct_abstract_declarator", "initializer",
  "initializer_list", "statement", "labeled_statement",
  "compound_statement", "compound_statement_list",
  "compound_declaration_list", "declaration_list", "statement_list",
  "expression_statement", "get_labels", "release_labels", "switch_label",
  "release_switch_label", "selection_statement", "iteration_statement",
  "$@1", "$@2", "jump_statement", "strt", "strt1", "external_declaration",
  "function_scope", "unset_function_scope", "function_definition", 0
};
#endif

# ifdef YYPRINT
/* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to
   token YYLEX-NUM.  */
static const yytype_uint16 yytoknum[] =
{
       0,   256,   257,   258,   259,   260,   261,   262,   263,   264,
     265,   266,   267,   268,   269,   270,   271,   272,   273,   274,
     275,   276,   277,   278,   279,   280,   281,   282,   283,   284,
     285,   286,   287,   288,   289,   290,   291,   292,   293,   294,
     295,   296,   297,   298,   299,   300,   301,   302,   303,   304,
     305,   306,   307,   308,   309,   310,   311,   312,   313,   314,
     315,   316,   317,   318,   319,   320,   321,   322,   323,   324,
     325,   326,    59,    61,   124,    33,    94,    58,    60,    62,
      43,    45,    42,    47,    37,    40,    91,   123,    41,    93,
     125,    46,    44,    38,   126,    63
};
# endif

/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives.  */
static const yytype_uint8 yyr1[] =
{
       0,    96,    97,    98,    99,   100,   100,   100,   100,   100,
     100,   100,   100,   100,   100,   100,   100,   101,   101,   101,
     102,   102,   102,   102,   102,   102,   102,   102,   103,   103,
     104,   104,   104,   104,   104,   104,   105,   105,   105,   105,
     105,   105,   106,   106,   107,   107,   107,   107,   108,   108,
     108,   109,   109,   109,   110,   110,   110,   110,   110,   111,
     111,   111,   112,   112,   113,   113,   114,   114,   115,   115,
     116,   116,   117,   117,   118,   118,   119,   120,   120,   120,
     120,   120,   120,   120,   120,   120,   120,   120,   121,   121,
     122,   123,   123,   123,   123,   124,   124,   124,   124,   124,
     124,   124,   124,   124,   124,   124,   124,   124,   124,   124,
     125,   125,   126,   126,   127,   127,   127,   127,   127,   128,
     128,   128,   128,   128,   128,   128,   128,   128,   128,   128,
     128,   129,   129,   129,   130,   130,   131,   131,   132,   133,
     133,   133,   133,   134,   134,   135,   135,   135,   136,   136,
     136,   137,   137,   138,   138,   139,   139,   140,   140,   141,
     142,   143,   143,   143,   143,   143,   143,   143,   144,   144,
     144,   144,   145,   145,   146,   146,   147,   147,   148,   148,
     148,   149,   149,   150,   150,   151,   151,   151,   152,   152,
     152,   152,   152,   152,   152,   152,   152,   153,   153,   153,
     154,   154,   155,   155,   155,   155,   155,   155,   156,   156,
     156,   157,   157,   157,   158,   158,   159,   159,   160,   160,
     161,   161,   162,   162,   162,   163,   164,   165,   166,   167,
     167,   167,   168,   168,   169,   168,   170,   168,   171,   171,
     171,   171,   171,   172,   173,   173,   174,   174,   175,   176,
     177,   177,   177,   177
};

/* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN.  */
static const yytype_uint8 yyr2[] =
{
       0,     2,     0,     0,     1,     1,     1,     1,     1,     1,
       1,     1,     1,     1,     1,     1,     1,     1,     1,     3,
       1,     4,     3,     4,     3,     3,     2,     2,     1,     3,
       1,     2,     2,     2,     2,     4,     1,     1,     1,     1,
       1,     1,     1,     4,     1,     3,     3,     3,     1,     3,
       3,     1,     3,     3,     1,     3,     3,     3,     3,     1,
       3,     3,     1,     3,     1,     3,     1,     3,     1,     3,
       1,     3,     1,     5,     1,     3,     1,     1,     1,     1,
       1,     1,     1,     1,     1,     1,     1,     1,     1,     3,
       1,     2,     2,     3,     3,     1,     1,     1,     2,     2,
       2,     2,     2,     2,     3,     3,     3,     3,     3,     3,
       1,     3,     3,     1,     1,     1,     1,     1,     1,     1,
       1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
       1,     5,     4,     2,     1,     1,     1,     2,     3,     2,
       1,     2,     1,     1,     3,     1,     2,     3,     4,     5,
       2,     1,     3,     1,     3,     1,     1,     2,     1,     0,
       0,     1,     3,     4,     3,     6,     6,     3,     1,     2,
       2,     3,     1,     2,     1,     3,     1,     3,     2,     2,
       1,     1,     3,     1,     2,     1,     1,     2,     3,     2,
       3,     3,     4,     2,     3,     3,     4,     1,     3,     4,
       1,     3,     1,     1,     1,     1,     1,     1,     3,     4,
       3,     2,     5,     5,     1,     2,     1,     2,     1,     2,
       1,     2,     1,     2,     2,     0,     0,     0,     0,     5,
       7,     9,     7,     9,     0,     9,     0,    10,     3,     2,
       2,     2,     3,     1,     1,     2,     1,     1,     0,     0,
       8,     7,     7,     6
};

/* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state
   STATE-NUM when YYTABLE doesn't specify something else to do.  Zero
   means the default is an error.  */
static const yytype_uint8 yydefact[] =
{
       0,     4,   130,   114,   115,   116,   117,   118,   120,   121,
     122,   123,   126,   127,   124,   125,   155,   156,   119,   134,
     135,     0,   168,     0,   161,   247,     0,    97,    96,   128,
       0,   129,    95,   248,   158,     0,     0,   243,   244,   246,
       0,   150,   172,   170,   169,     0,    92,    91,     0,   110,
     113,   101,   102,   100,    99,     0,   133,   103,    98,   218,
       0,   248,   225,   159,     0,   157,     1,   245,   153,     0,
     151,     0,   173,   171,   162,    94,    93,     0,    76,     0,
     248,   225,   106,   107,   109,   108,   140,     0,   136,     0,
     142,     0,   105,   104,   113,   219,   225,     0,   167,     0,
       9,     7,     6,     5,    16,    15,    14,    13,    12,    11,
      10,     8,     0,     0,     0,    41,    38,    39,    37,     0,
     164,    36,    40,    17,    18,    20,    30,    42,     0,    44,
      48,    51,    54,    59,    62,    64,    66,    68,    70,    72,
      90,     0,     0,   148,     0,     0,   111,     0,    42,    74,
     197,   112,   225,     0,   139,   132,   137,     0,     0,   143,
     145,   141,     0,     0,     2,   226,   181,   180,   160,   174,
     176,   160,     0,    34,     0,    31,    32,    88,     0,   183,
       0,     0,    26,    27,     0,     0,     0,    33,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,   163,   154,   152,
     149,   200,     0,    78,    79,    80,    81,    82,    83,    84,
      85,    86,    87,    77,     0,     0,   226,   146,   138,     0,
       0,   131,   226,   211,     0,   249,     0,     0,   178,   185,
     179,   186,     0,     0,     0,     0,     0,    19,     0,     0,
     185,   184,     0,    25,    22,     0,    28,     0,    24,    45,
      46,    47,    49,    50,    52,    53,    57,    58,    55,    56,
      60,    61,    63,    65,    67,    69,    71,     0,   198,     0,
      75,   226,   249,   144,   147,   249,     0,     0,     0,   225,
     225,   225,   225,     0,     0,     0,     0,   222,    17,     0,
     220,   202,   203,     3,     3,   214,   216,   204,   205,   206,
     207,   253,   193,     0,     0,   189,     0,   187,     0,     0,
     165,   175,   177,   182,   166,    35,    89,    43,    23,     0,
      21,     0,   199,   201,   249,   251,   252,     0,     0,     0,
       0,     0,     0,     0,     0,   239,   240,   241,     0,     0,
     224,   223,     0,     0,   215,   221,   217,   194,   188,   190,
     195,     0,   191,     0,    29,    73,   250,     0,   210,     0,
       0,     0,     0,     0,   238,   242,   208,   212,   213,   196,
     192,   209,     0,     0,     0,     0,     0,   229,   227,     0,
       0,   234,     0,     0,   226,     0,   236,     0,   230,   228,
     232,     0,     0,     0,   226,   226,     0,   226,   231,   233,
     226,   235,   237
};

/* YYDEFGOTO[NTERM-NUM].  */
static const yytype_int16 yydefgoto[] =
{
      -1,   234,   352,   123,   124,   125,   126,   255,   148,   128,
     129,   130,   131,   132,   133,   134,   135,   136,   137,   138,
     139,   149,   177,    79,   224,   299,   141,    59,    60,    48,
      49,    27,    28,    29,    30,    87,    88,    89,   158,   159,
      31,    69,    70,    32,    33,    99,   242,    34,    35,    44,
     313,   169,   170,   171,   180,   314,   241,   151,   212,   300,
     301,   302,   303,   304,   305,   306,   307,    97,   235,   393,
     404,   308,   309,   397,   402,   310,    36,    37,    38,    62,
     311,    39
};

/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
   STATE-NUM.  */
#define YYPACT_NINF -338
static const yytype_int16 yypact[] =
{
    1118,  -338,  -338,  -338,  -338,  -338,  -338,  -338,  -338,  -338,
    -338,  -338,  -338,  -338,  -338,  -338,  -338,  -338,  -338,  -338,
    -338,    -1,    66,    53,  -338,  -338,    26,  1214,   311,  -338,
       3,  -338,  1349,  1329,    51,    53,    34,  1118,  -338,  -338,
      33,   -70,  -338,  -338,    66,   -33,  -338,  -338,     8,  -338,
    1240,    66,  1363,    66,   146,  1214,    -5,  1363,   146,  -338,
      26,  1329,  -338,   -14,   720,  -338,  -338,  -338,    19,    87,
    -338,    33,  -338,  -338,  -338,  -338,  -338,    53,  -338,   740,
    1329,  -338,  -338,  -338,  -338,  -338,  1214,   495,  -338,    49,
    1214,  1214,  -338,  -338,    21,  -338,  -338,    56,  -338,  1288,
    -338,  -338,  -338,  -338,  -338,  -338,  -338,  -338,  -338,  -338,
    -338,  -338,  1004,  1024,  1024,  -338,  -338,  -338,  -338,   516,
    -338,  -338,  -338,  -338,  -338,  -338,    38,  -338,  1116,  -338,
     100,   151,   240,    -6,   251,    14,    85,    91,    99,    -4,
    -338,    83,  1116,  -338,    33,   127,  -338,   740,   264,  -338,
    -338,  -338,  -338,    56,  -338,  -338,  -338,  1116,   -48,  -338,
     141,  -338,   607,    56,   132,  -338,  -338,    28,  -338,   135,
    -338,   145,   516,  -338,  1116,  -338,  -338,  -338,   -40,    73,
     152,    33,  -338,  -338,   760,  1116,    33,  -338,  1116,  1116,
    1116,  1116,  1116,  1116,  1116,  1116,  1116,  1116,  1116,  1116,
    1116,  1116,  1116,  1116,  1116,  1116,  1116,  -338,  -338,  -338,
    -338,  -338,   138,  -338,  -338,  -338,  -338,  -338,  -338,  -338,
    -338,  -338,  -338,  -338,  1116,    56,  -338,  -338,  -338,    49,
    1116,  -338,  -338,  -338,   424,  -338,  1098,   852,  -338,    28,
    -338,   194,   155,  1308,    33,   162,   168,  -338,  1116,  1171,
     196,  -338,  1116,  -338,  -338,    40,  -338,    81,  -338,  -338,
    -338,  -338,   100,   100,   151,   151,   240,   240,   240,   240,
      -6,    -6,   251,    14,    85,    91,    99,   -31,  -338,   628,
    -338,  -338,  -338,  -338,  -338,  -338,  1116,   187,   182,  -338,
    -338,  -338,  -338,    33,   197,   203,   872,  -338,   207,    13,
    -338,  -338,  -338,  -338,  -338,   424,   424,  -338,  -338,  -338,
    -338,  -338,  -338,   198,   202,  -338,   215,   194,  1191,   892,
    -338,  -338,  -338,  -338,  -338,  -338,  -338,  -338,  -338,  1116,
    -338,  1116,  -338,  -338,  -338,  -338,  -338,   235,   608,  1116,
     228,   229,   608,   230,   220,  -338,  -338,  -338,   -41,   608,
    -338,  -338,   227,   237,  -338,  -338,  -338,  -338,  -338,  -338,
    -338,   241,  -338,   236,  -338,  -338,  -338,   608,  -338,    58,
    1116,  1116,   263,   984,  -338,  -338,  -338,  -338,  -338,  -338,
    -338,  -338,   608,    60,    65,   245,   984,   316,  -338,   608,
    1116,  1116,   608,   608,  -338,    76,   242,   244,  -338,  -338,
    -338,   261,   247,   608,  -338,  -338,   608,  -338,  -338,  -338,
    -338,  -338,  -338
};

/* YYPGOTO[NTERM-NUM].  */
static const yytype_int16 yypgoto[] =
{
    -338,  -338,    35,     0,  -338,  -338,  -338,  -338,     5,  -338,
     -86,    97,   114,    17,   111,   139,   143,   140,   144,   142,
    -338,   -61,   -68,   209,  -338,  -118,   -45,     4,     2,  -338,
     273,   117,   289,  -338,  -338,   268,   -79,   -57,  -338,   131,
    -338,   290,   219,   232,   -13,  -338,   193,  -338,   -16,  -338,
     -94,  -338,   125,  -338,   199,  -104,  -144,  -140,  -338,    20,
    -338,   -85,    64,    67,   -18,  -338,  -337,   -43,  -139,  -338,
    -338,  -338,  -338,  -338,  -338,  -338,  -338,  -338,   336,    80,
    -160,  -338
};

/* YYTABLE[YYPACT[STATE-NUM]].  What to do in state STATE-NUM.  If
   positive, shift that token.  If negative, reduce the rule which
   number is the opposite.  If zero, do what YYDEFACT says.
   If YYTABLE_NINF, syntax error.  */
#define YYTABLE_NINF -249
static const yytype_int16 yytable[] =
{
      24,   178,    26,   140,    25,   168,    43,   211,   156,    75,
      45,   150,   165,    50,   350,    61,     1,    71,   195,   196,
       1,    41,    65,    24,   228,   205,    24,    46,    73,   154,
      56,   375,    80,   161,    66,    24,   386,    24,   153,    26,
      68,    25,   187,     1,   229,     1,   331,    94,   247,   391,
       1,   248,   248,   163,   178,    74,   178,   181,   182,   183,
      24,   248,   179,   240,    94,    95,     1,   257,   226,   127,
       1,    68,   197,   198,    98,   251,   160,    24,   232,   150,
      76,   140,    91,   156,    95,   351,    40,   282,   277,    24,
      55,   206,   142,   285,    78,   317,   140,   208,    47,   166,
      77,   167,   259,   260,   261,   248,   317,   201,    22,   225,
      22,    23,   227,   236,   237,   179,   256,   173,   175,   176,
      16,    17,   335,   184,   185,   336,   157,   204,   328,   186,
      81,    22,   329,   127,    23,    22,    63,    64,    23,   333,
     281,    96,   334,   164,    68,    53,   382,   127,   388,    57,
     248,   239,   248,   389,   238,    22,   280,   248,   249,   237,
     152,   202,   127,   250,   401,   203,   327,    24,   248,   140,
     330,    85,   207,   248,   366,    93,   140,   143,   348,   144,
     326,   253,   188,   189,   190,   284,   258,     3,     4,     5,
       6,     7,   316,   127,   127,   127,   127,   127,   127,   127,
     127,   127,   127,   127,   127,   127,   127,   127,   127,   127,
     127,   150,   266,   267,   268,   269,   160,   210,   230,   144,
     239,   369,   233,    45,   361,   140,    65,   243,   278,    24,
     279,   191,   192,   250,   298,   127,    24,   244,   167,    24,
     252,   337,   127,   320,   323,   167,   340,   341,   342,   343,
     324,   167,   383,   384,    42,   400,   325,   127,   140,    52,
      54,   364,   193,   194,   338,   408,   409,   339,   411,   345,
     365,   412,   395,   396,   363,   346,    72,   199,   200,   318,
     319,   249,   237,    82,   349,    84,   357,    90,   262,   263,
     358,   127,   374,   344,   213,   214,   215,   216,   217,   218,
     219,   220,   221,   222,   359,   298,   298,   264,   265,    95,
     270,   271,   367,   370,   371,   373,    51,   377,    90,    90,
     167,    58,    90,    90,   127,   380,   355,   378,   385,   379,
     390,   392,   403,   405,   248,   406,   127,    78,   298,   353,
     272,    83,   298,   274,    86,   273,    92,   276,   275,   298,
     146,    90,     3,     4,     5,     6,     7,   223,   368,   162,
     283,   145,   372,   209,   245,    16,    17,   298,   322,   376,
     356,   246,   354,    67,     0,    86,    86,     0,     0,    86,
      86,     0,   298,     0,     0,     0,     0,   381,     0,   298,
       0,     0,   298,   298,    90,     0,     0,     0,     0,     0,
       0,     0,   387,   298,    90,     0,   298,     0,    86,   394,
       0,     0,   398,   399,     0,     0,     0,     0,     0,     0,
       0,     0,     0,   407,     0,     0,   410,   100,   101,   102,
     103,   104,   105,   106,   107,   108,   109,   110,     0,     0,
     111,     1,   112,     0,   113,   114,     0,     0,     0,     0,
       0,    86,     0,     0,     0,     0,     0,     0,     0,     0,
       0,    86,     0,     0,     2,     3,     4,     5,     6,     7,
       8,     9,    10,    11,    12,    13,    14,    15,    16,    17,
      18,    19,    20,    21,     0,   286,   287,   288,   289,   290,
     291,   292,   293,   294,   295,   296,   297,     0,     0,   115,
       0,     0,     0,     0,   116,   117,   118,     0,     0,   119,
       0,   164,     0,     0,     0,     0,     0,   121,   122,   100,
     101,   102,   103,   104,   105,   106,   107,   108,   109,   110,
       0,     0,   111,     1,   112,     2,   113,   114,     0,     0,
       0,     8,     9,    10,    11,    12,    13,    14,    15,    16,
      17,    18,    19,    20,    21,     0,     2,     0,     0,     0,
       0,     0,     8,     9,    10,    11,    12,    13,    14,    15,
      16,    17,    18,    19,    20,    21,     0,     0,     0,     0,
       0,     0,     0,     0,     0,   155,     0,     0,     0,     0,
       0,   115,     0,     0,     0,     0,   116,   117,   118,     0,
       0,   119,     0,     0,     0,     0,     0,     0,     0,   121,
     122,   100,   101,   102,   103,   104,   105,   106,   107,   108,
     109,   110,     0,     0,   111,     1,   112,     0,   113,   114,
       0,   100,   101,   102,   103,   104,   105,   106,   107,   108,
     109,   110,     0,     0,   111,     1,   112,     2,   113,   114,
       0,     0,     0,     8,     9,    10,    11,    12,    13,    14,
      15,    16,    17,    18,    19,    20,    21,     0,     0,   286,
     287,   288,   289,   290,   291,   292,   293,   294,   295,   296,
     297,     0,     0,   115,     0,     0,     0,     0,   116,   117,
     118,     0,     0,   119,     0,   164,     0,   231,     0,     0,
       0,   121,   122,   115,     0,     0,     0,     0,   116,   117,
     118,     0,     0,   119,     0,   147,     0,     0,   332,     0,
       0,   121,   122,   100,   101,   102,   103,   104,   105,   106,
     107,   108,   109,   110,     0,     0,   111,     1,   112,     0,
     113,   114,     0,   100,   101,   102,   103,   104,   105,   106,
     107,   108,   109,   110,     0,     0,   111,     1,   112,     0,
     113,   114,     0,   100,   101,   102,   103,   104,   105,   106,
     107,   108,   109,   110,     0,     0,   111,     1,   112,     0,
     113,   114,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,   115,     0,     0,     0,     0,
     116,   117,   118,     0,     0,   119,     0,     0,     0,   120,
       0,     0,     0,   121,   122,   115,     0,     0,     0,     0,
     116,   117,   118,     0,     0,   119,     0,   147,     0,     0,
       0,     0,     0,   121,   122,   115,     0,     0,     0,     0,
     116,   117,   118,     0,     0,   119,     0,     0,   254,     0,
       0,     0,     0,   121,   122,   100,   101,   102,   103,   104,
     105,   106,   107,   108,   109,   110,     0,     0,   111,     1,
     112,     0,   113,   114,     0,   100,   101,   102,   103,   104,
     105,   106,   107,   108,   109,   110,     0,     0,   111,     1,
     112,     0,   113,   114,     0,   100,   101,   102,   103,   104,
     105,   106,   107,   108,   109,   110,     0,     0,   111,     1,
     112,     0,   113,   114,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,   115,     0,     0,
       0,     0,   116,   117,   118,     0,     0,   119,     0,     0,
       0,   315,     0,     0,   347,   121,   122,   115,     0,     0,
       0,     0,   116,   117,   118,     0,     0,   119,     0,     0,
       0,     0,     0,     0,     0,   121,   122,   115,     0,     0,
       0,     0,   116,   117,   118,     0,     0,   119,     0,     0,
       0,   362,     0,     0,     0,   121,   122,   100,   101,   102,
     103,   104,   105,   106,   107,   108,   109,   110,     0,     0,
     111,     1,   112,     0,   113,   114,     0,   100,   101,   102,
     103,   104,   105,   106,   107,   108,   109,   110,     0,     0,
     111,     1,   112,     0,   113,   114,     0,   100,   101,   102,
     103,   104,   105,   106,   107,   108,   109,   110,     0,     0,
     111,     1,   112,     0,   113,   114,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,   297,     0,     0,   115,
       0,     0,     0,     0,   116,   117,   118,     0,     0,   119,
       0,     0,     0,     0,     0,     0,     0,   121,   122,   115,
       0,     0,     0,     0,   116,   117,   118,     0,     0,   172,
       0,     0,     0,     0,     0,     0,     0,   121,   122,   115,
       0,     0,     0,     0,   116,   117,   118,     0,     0,   174,
       0,     0,     0,     0,     0,     1,     0,   121,   122,   100,
     101,   102,   103,   104,   105,   106,   107,   108,   109,   110,
       0,     0,   111,     1,   112,     1,   113,   114,     2,     3,
       4,     5,     6,     7,     8,     9,    10,    11,    12,    13,
      14,    15,    16,    17,    18,    19,    20,    21,     2,     3,
       4,     5,     6,     7,     8,     9,    10,    11,    12,    13,
      14,    15,    16,    17,    18,    19,    20,    21,     0,     0,
      22,     0,     0,   236,   237,     0,   312,     0,     0,     0,
       0,   115,     0,     0,     0,     0,   116,   117,   118,     0,
      22,   119,     0,    23,     0,     0,     0,     0,     0,   121,
     122,     2,     3,     4,     5,     6,     7,     8,     9,    10,
      11,    12,    13,    14,    15,    16,    17,    18,    19,    20,
      21,     2,     3,     4,     5,     6,     7,     8,     9,    10,
      11,    12,    13,    14,    15,    16,    17,    18,    19,    20,
      21,     0,     0,    22,     2,     0,   249,   237,     0,   312,
       8,     9,    10,    11,    12,    13,    14,    15,    16,    17,
      18,    19,    20,    21,     0,     0,     0,     0,     0,   360,
       2,     3,     4,     5,     6,     7,     8,     9,    10,    11,
      12,    13,    14,    15,    16,    17,    18,    19,    20,    21,
       0,     0,     0,     0,     0,     1,     0,     0,     0,     0,
       0,     0,     0,    78,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,  -248,     2,     3,
       4,     5,     6,     7,     8,     9,    10,    11,    12,    13,
      14,    15,    16,    17,    18,    19,    20,    21,     2,     3,
       4,     5,     6,     7,     8,     9,    10,    11,    12,    13,
      14,    15,    16,    17,    18,    19,    20,    21,   321,     2,
       3,     4,     5,     6,     7,     8,     9,    10,    11,    12,
      13,    14,    15,    16,    17,    18,    19,    20,    21,     2,
       3,     4,     5,     6,     7,     8,     9,    10,    11,    12,
      13,    14,    15,     2,     0,    18,    19,    20,    21,     8,
       9,    10,    11,    12,    13,    14,    15,     0,     0,    18,
      19,    20,    21
};

static const yytype_int16 yycheck[] =
{
       0,   119,     0,    64,     0,    99,    22,   147,    87,     1,
      23,    79,    97,    26,     1,    33,    17,    87,    24,    25,
      17,    21,    35,    23,    72,    29,    26,     1,    44,    86,
      30,    72,    50,    90,     0,    35,   373,    37,    81,    37,
      40,    37,   128,    17,    92,    17,    77,    60,    88,   386,
      17,    92,    92,    96,   172,    88,   174,    19,    20,    21,
      60,    92,   119,   167,    77,    61,    17,   185,   153,    64,
      17,    71,    78,    79,    88,   179,    89,    77,   163,   147,
      72,   142,    87,   162,    80,    72,    87,   226,   206,    89,
      87,    95,    73,   232,    73,   239,   157,   142,    72,    99,
      92,    99,   188,   189,   190,    92,   250,    93,    82,   152,
      82,    85,   157,    85,    86,   172,   184,   112,   113,   114,
      54,    55,   282,    85,    86,   285,    77,    28,    88,    91,
      50,    82,    92,   128,    85,    82,    85,    86,    85,   279,
     225,    61,   281,    87,   144,    28,    88,   142,    88,    32,
      92,   167,    92,    88,   167,    82,   224,    92,    85,    86,
      80,    76,   157,   179,    88,    74,   252,   167,    92,   230,
      89,    54,    89,    92,   334,    58,   237,    90,   296,    92,
     248,   181,    82,    83,    84,   230,   186,    41,    42,    43,
      44,    45,   237,   188,   189,   190,   191,   192,   193,   194,
     195,   196,   197,   198,   199,   200,   201,   202,   203,   204,
     205,   279,   195,   196,   197,   198,   229,    90,    77,    92,
     236,   339,    90,   236,   318,   286,   239,    92,    90,   229,
      92,    80,    81,   249,   234,   230,   236,    92,   236,   239,
      88,   286,   237,    88,   244,   243,   289,   290,   291,   292,
      88,   249,   370,   371,    22,   394,    88,   252,   319,    27,
      28,   329,    22,    23,    77,   404,   405,    85,   407,    72,
     331,   410,   390,   391,   319,    72,    44,    26,    27,    85,
      86,    85,    86,    51,    77,    53,    88,    55,   191,   192,
      88,   286,    72,   293,    30,    31,    32,    33,    34,    35,
      36,    37,    38,    39,    89,   305,   306,   193,   194,   305,
     199,   200,    77,    85,    85,    85,    27,    90,    86,    87,
     318,    32,    90,    91,   319,    89,   306,    90,    65,    88,
      85,    15,    88,    72,    92,    88,   331,    73,   338,   304,
     201,    52,   342,   203,    55,   202,    57,   205,   204,   349,
      77,   119,    41,    42,    43,    44,    45,   148,   338,    91,
     229,    71,   342,   144,   171,    54,    55,   367,   243,   349,
     306,   172,   305,    37,    -1,    86,    87,    -1,    -1,    90,
      91,    -1,   382,    -1,    -1,    -1,    -1,   367,    -1,   389,
      -1,    -1,   392,   393,   162,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,   382,   403,   172,    -1,   406,    -1,   119,   389,
      -1,    -1,   392,   393,    -1,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,   403,    -1,    -1,   406,     3,     4,     5,
       6,     7,     8,     9,    10,    11,    12,    13,    -1,    -1,
      16,    17,    18,    -1,    20,    21,    -1,    -1,    -1,    -1,
      -1,   162,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
      -1,   172,    -1,    -1,    40,    41,    42,    43,    44,    45,
      46,    47,    48,    49,    50,    51,    52,    53,    54,    55,
      56,    57,    58,    59,    -1,    61,    62,    63,    64,    65,
      66,    67,    68,    69,    70,    71,    72,    -1,    -1,    75,
      -1,    -1,    -1,    -1,    80,    81,    82,    -1,    -1,    85,
      -1,    87,    -1,    -1,    -1,    -1,    -1,    93,    94,     3,
       4,     5,     6,     7,     8,     9,    10,    11,    12,    13,
      -1,    -1,    16,    17,    18,    40,    20,    21,    -1,    -1,
      -1,    46,    47,    48,    49,    50,    51,    52,    53,    54,
      55,    56,    57,    58,    59,    -1,    40,    -1,    -1,    -1,
      -1,    -1,    46,    47,    48,    49,    50,    51,    52,    53,
      54,    55,    56,    57,    58,    59,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,    -1,    -1,    90,    -1,    -1,    -1,    -1,
      -1,    75,    -1,    -1,    -1,    -1,    80,    81,    82,    -1,
      -1,    85,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    93,
      94,     3,     4,     5,     6,     7,     8,     9,    10,    11,
      12,    13,    -1,    -1,    16,    17,    18,    -1,    20,    21,
      -1,     3,     4,     5,     6,     7,     8,     9,    10,    11,
      12,    13,    -1,    -1,    16,    17,    18,    40,    20,    21,
      -1,    -1,    -1,    46,    47,    48,    49,    50,    51,    52,
      53,    54,    55,    56,    57,    58,    59,    -1,    -1,    61,
      62,    63,    64,    65,    66,    67,    68,    69,    70,    71,
      72,    -1,    -1,    75,    -1,    -1,    -1,    -1,    80,    81,
      82,    -1,    -1,    85,    -1,    87,    -1,    90,    -1,    -1,
      -1,    93,    94,    75,    -1,    -1,    -1,    -1,    80,    81,
      82,    -1,    -1,    85,    -1,    87,    -1,    -1,    90,    -1,
      -1,    93,    94,     3,     4,     5,     6,     7,     8,     9,
      10,    11,    12,    13,    -1,    -1,    16,    17,    18,    -1,
      20,    21,    -1,     3,     4,     5,     6,     7,     8,     9,
      10,    11,    12,    13,    -1,    -1,    16,    17,    18,    -1,
      20,    21,    -1,     3,     4,     5,     6,     7,     8,     9,
      10,    11,    12,    13,    -1,    -1,    16,    17,    18,    -1,
      20,    21,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,    -1,    -1,    75,    -1,    -1,    -1,    -1,
      80,    81,    82,    -1,    -1,    85,    -1,    -1,    -1,    89,
      -1,    -1,    -1,    93,    94,    75,    -1,    -1,    -1,    -1,
      80,    81,    82,    -1,    -1,    85,    -1,    87,    -1,    -1,
      -1,    -1,    -1,    93,    94,    75,    -1,    -1,    -1,    -1,
      80,    81,    82,    -1,    -1,    85,    -1,    -1,    88,    -1,
      -1,    -1,    -1,    93,    94,     3,     4,     5,     6,     7,
       8,     9,    10,    11,    12,    13,    -1,    -1,    16,    17,
      18,    -1,    20,    21,    -1,     3,     4,     5,     6,     7,
       8,     9,    10,    11,    12,    13,    -1,    -1,    16,    17,
      18,    -1,    20,    21,    -1,     3,     4,     5,     6,     7,
       8,     9,    10,    11,    12,    13,    -1,    -1,    16,    17,
      18,    -1,    20,    21,    -1,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,    75,    -1,    -1,
      -1,    -1,    80,    81,    82,    -1,    -1,    85,    -1,    -1,
      -1,    89,    -1,    -1,    72,    93,    94,    75,    -1,    -1,
      -1,    -1,    80,    81,    82,    -1,    -1,    85,    -1,    -1,
      -1,    -1,    -1,    -1,    -1,    93,    94,    75,    -1,    -1,
      -1,    -1,    80,    81,    82,    -1,    -1,    85,    -1,    -1,
      -1,    89,    -1,    -1,    -1,    93,    94,     3,     4,     5,
       6,     7,     8,     9,    10,    11,    12,    13,    -1,    -1,
      16,    17,    18,    -1,    20,    21,    -1,     3,     4,     5,
       6,     7,     8,     9,    10,    11,    12,    13,    -1,    -1,
      16,    17,    18,    -1,    20,    21,    -1,     3,     4,     5,
       6,     7,     8,     9,    10,    11,    12,    13,    -1,    -1,
      16,    17,    18,    -1,    20,    21,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,    -1,    -1,    -1,    72,    -1,    -1,    75,
      -1,    -1,    -1,    -1,    80,    81,    82,    -1,    -1,    85,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,    93,    94,    75,
      -1,    -1,    -1,    -1,    80,    81,    82,    -1,    -1,    85,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,    93,    94,    75,
      -1,    -1,    -1,    -1,    80,    81,    82,    -1,    -1,    85,
      -1,    -1,    -1,    -1,    -1,    17,    -1,    93,    94,     3,
       4,     5,     6,     7,     8,     9,    10,    11,    12,    13,
      -1,    -1,    16,    17,    18,    17,    20,    21,    40,    41,
      42,    43,    44,    45,    46,    47,    48,    49,    50,    51,
      52,    53,    54,    55,    56,    57,    58,    59,    40,    41,
      42,    43,    44,    45,    46,    47,    48,    49,    50,    51,
      52,    53,    54,    55,    56,    57,    58,    59,    -1,    -1,
      82,    -1,    -1,    85,    86,    -1,    88,    -1,    -1,    -1,
      -1,    75,    -1,    -1,    -1,    -1,    80,    81,    82,    -1,
      82,    85,    -1,    85,    -1,    -1,    -1,    -1,    -1,    93,
      94,    40,    41,    42,    43,    44,    45,    46,    47,    48,
      49,    50,    51,    52,    53,    54,    55,    56,    57,    58,
      59,    40,    41,    42,    43,    44,    45,    46,    47,    48,
      49,    50,    51,    52,    53,    54,    55,    56,    57,    58,
      59,    -1,    -1,    82,    40,    -1,    85,    86,    -1,    88,
      46,    47,    48,    49,    50,    51,    52,    53,    54,    55,
      56,    57,    58,    59,    -1,    -1,    -1,    -1,    -1,    88,
      40,    41,    42,    43,    44,    45,    46,    47,    48,    49,
      50,    51,    52,    53,    54,    55,    56,    57,    58,    59,
      -1,    -1,    -1,    -1,    -1,    17,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,    73,    -1,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,    87,    40,    41,
      42,    43,    44,    45,    46,    47,    48,    49,    50,    51,
      52,    53,    54,    55,    56,    57,    58,    59,    40,    41,
      42,    43,    44,    45,    46,    47,    48,    49,    50,    51,
      52,    53,    54,    55,    56,    57,    58,    59,    60,    40,
      41,    42,    43,    44,    45,    46,    47,    48,    49,    50,
      51,    52,    53,    54,    55,    56,    57,    58,    59,    40,
      41,    42,    43,    44,    45,    46,    47,    48,    49,    50,
      51,    52,    53,    40,    -1,    56,    57,    58,    59,    46,
      47,    48,    49,    50,    51,    52,    53,    -1,    -1,    56,
      57,    58,    59
};

/* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
   symbol of state STATE-NUM.  */
static const yytype_uint8 yystos[] =
{
       0,    17,    40,    41,    42,    43,    44,    45,    46,    47,
      48,    49,    50,    51,    52,    53,    54,    55,    56,    57,
      58,    59,    82,    85,    99,   123,   124,   127,   128,   129,
     130,   136,   139,   140,   143,   144,   172,   173,   174,   177,
      87,    99,   139,   144,   145,   140,     1,    72,   125,   126,
     140,   128,   139,   127,   139,    87,    99,   127,   128,   123,
     124,   160,   175,    85,    86,   140,     0,   174,    99,   137,
     138,    87,   139,   144,    88,     1,    72,    92,    73,   119,
     160,   175,   139,   128,   139,   127,   128,   131,   132,   133,
     139,    87,   128,   127,   140,   123,   175,   163,    88,   141,
       3,     4,     5,     6,     7,     8,     9,    10,    11,    12,
      13,    16,    18,    20,    21,    75,    80,    81,    82,    85,
      89,    93,    94,    99,   100,   101,   102,   104,   105,   106,
     107,   108,   109,   110,   111,   112,   113,   114,   115,   116,
     117,   122,    73,    90,    92,   137,   126,    87,   104,   117,
     118,   153,   175,   163,   133,    90,   132,    77,   134,   135,
     140,   133,   131,   163,    87,   157,    99,   124,   146,   147,
     148,   149,    85,   104,    85,   104,   104,   118,   121,   133,
     150,    19,    20,    21,    85,    86,    91,   106,    82,    83,
      84,    80,    81,    22,    23,    24,    25,    78,    79,    26,
      27,    93,    76,    74,    28,    29,    95,    89,   122,   138,
      90,   153,   154,    30,    31,    32,    33,    34,    35,    36,
      37,    38,    39,   119,   120,   163,   157,   122,    72,    92,
      77,    90,   157,    90,    97,   164,    85,    86,   140,   144,
     151,   152,   142,    92,    92,   142,   150,    88,    92,    85,
     144,   151,    88,    99,    88,   103,   118,   121,    99,   106,
     106,   106,   107,   107,   108,   108,   109,   109,   109,   109,
     110,   110,   111,   112,   113,   114,   115,   121,    90,    92,
     118,   157,   164,   135,   122,   164,    61,    62,    63,    64,
      65,    66,    67,    68,    69,    70,    71,    72,    99,   121,
     155,   156,   157,   158,   159,   160,   161,   162,   167,   168,
     171,   176,    88,   146,   151,    89,   122,   152,    85,    86,
      88,    60,   148,    99,    88,    88,   118,   106,    88,    92,
      89,    77,    90,   153,   164,   176,   176,   122,    77,    85,
     163,   163,   163,   163,    99,    72,    72,    72,   121,    77,
       1,    72,    98,    98,   159,   155,   158,    88,    88,    89,
      88,   146,    89,   122,   118,   117,   176,    77,   155,   121,
      85,    85,   155,    85,    72,    72,   155,    90,    90,    88,
      89,   155,    88,   121,   121,    65,   162,   155,    88,    88,
      85,   162,    15,   165,   155,   121,   121,   169,   155,   155,
     164,    88,   170,    88,   166,    72,    88,   155,   164,   164,
     155,   164,   164
};

#define yyerrok		(yyerrstatus = 0)
#define yyclearin	(yychar = YYEMPTY)
#define YYEMPTY		(-2)
#define YYEOF		0

#define YYACCEPT	goto yyacceptlab
#define YYABORT		goto yyabortlab
#define YYERROR		goto yyerrorlab


/* Like YYERROR except do call yyerror.  This remains here temporarily
   to ease the transition to the new meaning of YYERROR, for GCC.
   Once GCC version 2 has supplanted version 1, this can go.  */

#define YYFAIL		goto yyerrlab

#define YYRECOVERING()  (!!yyerrstatus)

#define YYBACKUP(Token, Value)					\
do								\
  if (yychar == YYEMPTY && yylen == 1)				\
    {								\
      yychar = (Token);						\
      yylval = (Value);						\
      yytoken = YYTRANSLATE (yychar);				\
      YYPOPSTACK (1);						\
      goto yybackup;						\
    }								\
  else								\
    {								\
      yyerror (YY_("syntax error: cannot back up")); \
      YYERROR;							\
    }								\
while (YYID (0))


#define YYTERROR	1
#define YYERRCODE	256


/* YYLLOC_DEFAULT -- Set CURRENT to span from RHS[1] to RHS[N].
   If N is 0, then set CURRENT to the empty location which ends
   the previous symbol: RHS[0] (always defined).  */

#define YYRHSLOC(Rhs, K) ((Rhs)[K])
#ifndef YYLLOC_DEFAULT
# define YYLLOC_DEFAULT(Current, Rhs, N)				\
    do									\
      if (YYID (N))                                                    \
	{								\
	  (Current).first_line   = YYRHSLOC (Rhs, 1).first_line;	\
	  (Current).first_column = YYRHSLOC (Rhs, 1).first_column;	\
	  (Current).last_line    = YYRHSLOC (Rhs, N).last_line;		\
	  (Current).last_column  = YYRHSLOC (Rhs, N).last_column;	\
	}								\
      else								\
	{								\
	  (Current).first_line   = (Current).last_line   =		\
	    YYRHSLOC (Rhs, 0).last_line;				\
	  (Current).first_column = (Current).last_column =		\
	    YYRHSLOC (Rhs, 0).last_column;				\
	}								\
    while (YYID (0))
#endif


/* YY_LOCATION_PRINT -- Print the location on the stream.
   This macro was not mandated originally: define only if we know
   we won't break user code: when these are the locations we know.  */

#ifndef YY_LOCATION_PRINT
# if YYLTYPE_IS_TRIVIAL
#  define YY_LOCATION_PRINT(File, Loc)			\
     fprintf (File, "%d.%d-%d.%d",			\
	      (Loc).first_line, (Loc).first_column,	\
	      (Loc).last_line,  (Loc).last_column)
# else
#  define YY_LOCATION_PRINT(File, Loc) ((void) 0)
# endif
#endif


/* YYLEX -- calling `yylex' with the right arguments.  */

#ifdef YYLEX_PARAM
# define YYLEX yylex (YYLEX_PARAM)
#else
# define YYLEX yylex ()
#endif

/* Enable debugging if requested.  */
#if YYDEBUG

# ifndef YYFPRINTF
#  include <stdio.h> /* INFRINGES ON USER NAME SPACE */
#  define YYFPRINTF fprintf
# endif

# define YYDPRINTF(Args)			\
do {						\
  if (yydebug)					\
    YYFPRINTF Args;				\
} while (YYID (0))

# define YY_SYMBOL_PRINT(Title, Type, Value, Location)			  \
do {									  \
  if (yydebug)								  \
    {									  \
      YYFPRINTF (stderr, "%s ", Title);					  \
      yy_symbol_print (stderr,						  \
		  Type, Value); \
      YYFPRINTF (stderr, "\n");						  \
    }									  \
} while (YYID (0))


/*--------------------------------.
| Print this symbol on YYOUTPUT.  |
`--------------------------------*/

/*ARGSUSED*/
#if (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
static void
yy_symbol_value_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep)
#else
static void
yy_symbol_value_print (yyoutput, yytype, yyvaluep)
    FILE *yyoutput;
    int yytype;
    YYSTYPE const * const yyvaluep;
#endif
{
  if (!yyvaluep)
    return;
# ifdef YYPRINT
  if (yytype < YYNTOKENS)
    YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);
# else
  YYUSE (yyoutput);
# endif
  switch (yytype)
    {
      default:
	break;
    }
}


/*--------------------------------.
| Print this symbol on YYOUTPUT.  |
`--------------------------------*/

#if (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
static void
yy_symbol_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep)
#else
static void
yy_symbol_print (yyoutput, yytype, yyvaluep)
    FILE *yyoutput;
    int yytype;
    YYSTYPE const * const yyvaluep;
#endif
{
  if (yytype < YYNTOKENS)
    YYFPRINTF (yyoutput, "token %s (", yytname[yytype]);
  else
    YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]);

  yy_symbol_value_print (yyoutput, yytype, yyvaluep);
  YYFPRINTF (yyoutput, ")");
}

/*------------------------------------------------------------------.
| yy_stack_print -- Print the state stack from its BOTTOM up to its |
| TOP (included).                                                   |
`------------------------------------------------------------------*/

#if (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
static void
yy_stack_print (yytype_int16 *yybottom, yytype_int16 *yytop)
#else
static void
yy_stack_print (yybottom, yytop)
    yytype_int16 *yybottom;
    yytype_int16 *yytop;
#endif
{
  YYFPRINTF (stderr, "Stack now");
  for (; yybottom <= yytop; yybottom++)
    {
      int yybot = *yybottom;
      YYFPRINTF (stderr, " %d", yybot);
    }
  YYFPRINTF (stderr, "\n");
}

# define YY_STACK_PRINT(Bottom, Top)				\
do {								\
  if (yydebug)							\
    yy_stack_print ((Bottom), (Top));				\
} while (YYID (0))


/*------------------------------------------------.
| Report that the YYRULE is going to be reduced.  |
`------------------------------------------------*/

#if (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
static void
yy_reduce_print (YYSTYPE *yyvsp, int yyrule)
#else
static void
yy_reduce_print (yyvsp, yyrule)
    YYSTYPE *yyvsp;
    int yyrule;
#endif
{
  int yynrhs = yyr2[yyrule];
  int yyi;
  unsigned long int yylno = yyrline[yyrule];
  YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu):\n",
	     yyrule - 1, yylno);
  /* The symbols being reduced.  */
  for (yyi = 0; yyi < yynrhs; yyi++)
    {
      YYFPRINTF (stderr, "   $%d = ", yyi + 1);
      yy_symbol_print (stderr, yyrhs[yyprhs[yyrule] + yyi],
		       &(yyvsp[(yyi + 1) - (yynrhs)])
		       		       );
      YYFPRINTF (stderr, "\n");
    }
}

# define YY_REDUCE_PRINT(Rule)		\
do {					\
  if (yydebug)				\
    yy_reduce_print (yyvsp, Rule); \
} while (YYID (0))

/* Nonzero means print parse trace.  It is left uninitialized so that
   multiple parsers can coexist.  */
int yydebug;
#else /* !YYDEBUG */
# define YYDPRINTF(Args)
# define YY_SYMBOL_PRINT(Title, Type, Value, Location)
# define YY_STACK_PRINT(Bottom, Top)
# define YY_REDUCE_PRINT(Rule)
#endif /* !YYDEBUG */


/* YYINITDEPTH -- initial size of the parser's stacks.  */
#ifndef	YYINITDEPTH
# define YYINITDEPTH 200
#endif

/* YYMAXDEPTH -- maximum size the stacks can grow to (effective only
   if the built-in stack extension method is used).

   Do not make this value too large; the results are undefined if
   YYSTACK_ALLOC_MAXIMUM < YYSTACK_BYTES (YYMAXDEPTH)
   evaluated with infinite-precision integer arithmetic.  */

#ifndef YYMAXDEPTH
# define YYMAXDEPTH 10000
#endif



#if YYERROR_VERBOSE

# ifndef yystrlen
#  if defined __GLIBC__ && defined _STRING_H
#   define yystrlen strlen
#  else
/* Return the length of YYSTR.  */
#if (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
static YYSIZE_T
yystrlen (const char *yystr)
#else
static YYSIZE_T
yystrlen (yystr)
    const char *yystr;
#endif
{
  YYSIZE_T yylen;
  for (yylen = 0; yystr[yylen]; yylen++)
    continue;
  return yylen;
}
#  endif
# endif

# ifndef yystpcpy
#  if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE
#   define yystpcpy stpcpy
#  else
/* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in
   YYDEST.  */
#if (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
static char *
yystpcpy (char *yydest, const char *yysrc)
#else
static char *
yystpcpy (yydest, yysrc)
    char *yydest;
    const char *yysrc;
#endif
{
  char *yyd = yydest;
  const char *yys = yysrc;

  while ((*yyd++ = *yys++) != '\0')
    continue;

  return yyd - 1;
}
#  endif
# endif

# ifndef yytnamerr
/* Copy to YYRES the contents of YYSTR after stripping away unnecessary
   quotes and backslashes, so that it's suitable for yyerror.  The
   heuristic is that double-quoting is unnecessary unless the string
   contains an apostrophe, a comma, or backslash (other than
   backslash-backslash).  YYSTR is taken from yytname.  If YYRES is
   null, do not copy; instead, return the length of what the result
   would have been.  */
static YYSIZE_T
yytnamerr (char *yyres, const char *yystr)
{
  if (*yystr == '"')
    {
      YYSIZE_T yyn = 0;
      char const *yyp = yystr;

      for (;;)
	switch (*++yyp)
	  {
	  case '\'':
	  case ',':
	    goto do_not_strip_quotes;

	  case '\\':
	    if (*++yyp != '\\')
	      goto do_not_strip_quotes;
	    /* Fall through.  */
	  default:
	    if (yyres)
	      yyres[yyn] = *yyp;
	    yyn++;
	    break;

	  case '"':
	    if (yyres)
	      yyres[yyn] = '\0';
	    return yyn;
	  }
    do_not_strip_quotes: ;
    }

  if (! yyres)
    return yystrlen (yystr);

  return yystpcpy (yyres, yystr) - yyres;
}
# endif

/* Copy into YYRESULT an error message about the unexpected token
   YYCHAR while in state YYSTATE.  Return the number of bytes copied,
   including the terminating null byte.  If YYRESULT is null, do not
   copy anything; just return the number of bytes that would be
   copied.  As a special case, return 0 if an ordinary "syntax error"
   message will do.  Return YYSIZE_MAXIMUM if overflow occurs during
   size calculation.  */
static YYSIZE_T
yysyntax_error (char *yyresult, int yystate, int yychar)
{
  int yyn = yypact[yystate];

  if (! (YYPACT_NINF < yyn && yyn <= YYLAST))
    return 0;
  else
    {
      int yytype = YYTRANSLATE (yychar);
      YYSIZE_T yysize0 = yytnamerr (0, yytname[yytype]);
      YYSIZE_T yysize = yysize0;
      YYSIZE_T yysize1;
      int yysize_overflow = 0;
      enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 };
      char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
      int yyx;

# if 0
      /* This is so xgettext sees the translatable formats that are
	 constructed on the fly.  */
      YY_("syntax error, unexpected %s");
      YY_("syntax error, unexpected %s, expecting %s");
      YY_("syntax error, unexpected %s, expecting %s or %s");
      YY_("syntax error, unexpected %s, expecting %s or %s or %s");
      YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s");
# endif
      char *yyfmt;
      char const *yyf;
      static char const yyunexpected[] = "syntax error, unexpected %s";
      static char const yyexpecting[] = ", expecting %s";
      static char const yyor[] = " or %s";
      char yyformat[sizeof yyunexpected
		    + sizeof yyexpecting - 1
		    + ((YYERROR_VERBOSE_ARGS_MAXIMUM - 2)
		       * (sizeof yyor - 1))];
      char const *yyprefix = yyexpecting;

      /* Start YYX at -YYN if negative to avoid negative indexes in
	 YYCHECK.  */
      int yyxbegin = yyn < 0 ? -yyn : 0;

      /* Stay within bounds of both yycheck and yytname.  */
      int yychecklim = YYLAST - yyn + 1;
      int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS;
      int yycount = 1;

      yyarg[0] = yytname[yytype];
      yyfmt = yystpcpy (yyformat, yyunexpected);

      for (yyx = yyxbegin; yyx < yyxend; ++yyx)
	if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR)
	  {
	    if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM)
	      {
		yycount = 1;
		yysize = yysize0;
		yyformat[sizeof yyunexpected - 1] = '\0';
		break;
	      }
	    yyarg[yycount++] = yytname[yyx];
	    yysize1 = yysize + yytnamerr (0, yytname[yyx]);
	    yysize_overflow |= (yysize1 < yysize);
	    yysize = yysize1;
	    yyfmt = yystpcpy (yyfmt, yyprefix);
	    yyprefix = yyor;
	  }

      yyf = YY_(yyformat);
      yysize1 = yysize + yystrlen (yyf);
      yysize_overflow |= (yysize1 < yysize);
      yysize = yysize1;

      if (yysize_overflow)
	return YYSIZE_MAXIMUM;

      if (yyresult)
	{
	  /* Avoid sprintf, as that infringes on the user's name space.
	     Don't have undefined behavior even if the translation
	     produced a string with the wrong number of "%s"s.  */
	  char *yyp = yyresult;
	  int yyi = 0;
	  while ((*yyp = *yyf) != '\0')
	    {
	      if (*yyp == '%' && yyf[1] == 's' && yyi < yycount)
		{
		  yyp += yytnamerr (yyp, yyarg[yyi++]);
		  yyf += 2;
		}
	      else
		{
		  yyp++;
		  yyf++;
		}
	    }
	}
      return yysize;
    }
}
#endif /* YYERROR_VERBOSE */


/*-----------------------------------------------.
| Release the memory associated to this symbol.  |
`-----------------------------------------------*/

/*ARGSUSED*/
#if (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
static void
yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep)
#else
static void
yydestruct (yymsg, yytype, yyvaluep)
    const char *yymsg;
    int yytype;
    YYSTYPE *yyvaluep;
#endif
{
  YYUSE (yyvaluep);

  if (!yymsg)
    yymsg = "Deleting";
  YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp);

  switch (yytype)
    {

      default:
	break;
    }
}

/* Prevent warnings from -Wmissing-prototypes.  */
#ifdef YYPARSE_PARAM
#if defined __STDC__ || defined __cplusplus
int yyparse (void *YYPARSE_PARAM);
#else
int yyparse ();
#endif
#else /* ! YYPARSE_PARAM */
#if defined __STDC__ || defined __cplusplus
int yyparse (void);
#else
int yyparse ();
#endif
#endif /* ! YYPARSE_PARAM */


/* The lookahead symbol.  */
int yychar;

/* The semantic value of the lookahead symbol.  */
YYSTYPE yylval;

/* Number of syntax errors so far.  */
int yynerrs;



/*-------------------------.
| yyparse or yypush_parse.  |
`-------------------------*/

#ifdef YYPARSE_PARAM
#if (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
int
yyparse (void *YYPARSE_PARAM)
#else
int
yyparse (YYPARSE_PARAM)
    void *YYPARSE_PARAM;
#endif
#else /* ! YYPARSE_PARAM */
#if (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
int
yyparse (void)
#else
int
yyparse ()

#endif
#endif
{


    int yystate;
    /* Number of tokens to shift before error messages enabled.  */
    int yyerrstatus;

    /* The stacks and their tools:
       `yyss': related to states.
       `yyvs': related to semantic values.

       Refer to the stacks thru separate pointers, to allow yyoverflow
       to reallocate them elsewhere.  */

    /* The state stack.  */
    yytype_int16 yyssa[YYINITDEPTH];
    yytype_int16 *yyss;
    yytype_int16 *yyssp;

    /* The semantic value stack.  */
    YYSTYPE yyvsa[YYINITDEPTH];
    YYSTYPE *yyvs;
    YYSTYPE *yyvsp;

    YYSIZE_T yystacksize;

  int yyn;
  int yyresult;
  /* Lookahead token as an internal (translated) token number.  */
  int yytoken;
  /* The variables used to return semantic value and location from the
     action routines.  */
  YYSTYPE yyval;

#if YYERROR_VERBOSE
  /* Buffer for error messages, and its allocated size.  */
  char yymsgbuf[128];
  char *yymsg = yymsgbuf;
  YYSIZE_T yymsg_alloc = sizeof yymsgbuf;
#endif

#define YYPOPSTACK(N)   (yyvsp -= (N), yyssp -= (N))

  /* The number of symbols on the RHS of the reduced rule.
     Keep to zero when no symbol should be popped.  */
  int yylen = 0;

  yytoken = 0;
  yyss = yyssa;
  yyvs = yyvsa;
  yystacksize = YYINITDEPTH;

  YYDPRINTF ((stderr, "Starting parse\n"));

  yystate = 0;
  yyerrstatus = 0;
  yynerrs = 0;
  yychar = YYEMPTY; /* Cause a token to be read.  */

  /* Initialize stack pointers.
     Waste one element of value and location stack
     so that they stay on the same level as the state stack.
     The wasted elements are never initialized.  */
  yyssp = yyss;
  yyvsp = yyvs;

  goto yysetstate;

/*------------------------------------------------------------.
| yynewstate -- Push a new state, which is found in yystate.  |
`------------------------------------------------------------*/
 yynewstate:
  /* In all cases, when you get here, the value and location stacks
     have just been pushed.  So pushing a state here evens the stacks.  */
  yyssp++;

 yysetstate:
  *yyssp = yystate;

  if (yyss + yystacksize - 1 <= yyssp)
    {
      /* Get the current used size of the three stacks, in elements.  */
      YYSIZE_T yysize = yyssp - yyss + 1;

#ifdef yyoverflow
      {
	/* Give user a chance to reallocate the stack.  Use copies of
	   these so that the &'s don't force the real ones into
	   memory.  */
	YYSTYPE *yyvs1 = yyvs;
	yytype_int16 *yyss1 = yyss;

	/* Each stack pointer address is followed by the size of the
	   data in use in that stack, in bytes.  This used to be a
	   conditional around just the two extra args, but that might
	   be undefined if yyoverflow is a macro.  */
	yyoverflow (YY_("memory exhausted"),
		    &yyss1, yysize * sizeof (*yyssp),
		    &yyvs1, yysize * sizeof (*yyvsp),
		    &yystacksize);

	yyss = yyss1;
	yyvs = yyvs1;
      }
#else /* no yyoverflow */
# ifndef YYSTACK_RELOCATE
      goto yyexhaustedlab;
# else
      /* Extend the stack our own way.  */
      if (YYMAXDEPTH <= yystacksize)
	goto yyexhaustedlab;
      yystacksize *= 2;
      if (YYMAXDEPTH < yystacksize)
	yystacksize = YYMAXDEPTH;

      {
	yytype_int16 *yyss1 = yyss;
	union yyalloc *yyptr =
	  (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize));
	if (! yyptr)
	  goto yyexhaustedlab;
	YYSTACK_RELOCATE (yyss_alloc, yyss);
	YYSTACK_RELOCATE (yyvs_alloc, yyvs);
#  undef YYSTACK_RELOCATE
	if (yyss1 != yyssa)
	  YYSTACK_FREE (yyss1);
      }
# endif
#endif /* no yyoverflow */

      yyssp = yyss + yysize - 1;
      yyvsp = yyvs + yysize - 1;

      YYDPRINTF ((stderr, "Stack size increased to %lu\n",
		  (unsigned long int) yystacksize));

      if (yyss + yystacksize - 1 <= yyssp)
	YYABORT;
    }

  YYDPRINTF ((stderr, "Entering state %d\n", yystate));

  if (yystate == YYFINAL)
    YYACCEPT;

  goto yybackup;

/*-----------.
| yybackup.  |
`-----------*/
yybackup:

  /* Do appropriate processing given the current state.  Read a
     lookahead token if we need one and don't already have one.  */

  /* First try to decide what to do without reference to lookahead token.  */
  yyn = yypact[yystate];
  if (yyn == YYPACT_NINF)
    goto yydefault;

  /* Not known => get a lookahead token if don't already have one.  */

  /* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol.  */
  if (yychar == YYEMPTY)
    {
      YYDPRINTF ((stderr, "Reading a token: "));
      yychar = YYLEX;
    }

  if (yychar <= YYEOF)
    {
      yychar = yytoken = YYEOF;
      YYDPRINTF ((stderr, "Now at end of input.\n"));
    }
  else
    {
      yytoken = YYTRANSLATE (yychar);
      YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc);
    }

  /* If the proper action on seeing token YYTOKEN is to reduce or to
     detect an error, take that action.  */
  yyn += yytoken;
  if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken)
    goto yydefault;
  yyn = yytable[yyn];
  if (yyn <= 0)
    {
      if (yyn == 0 || yyn == YYTABLE_NINF)
	goto yyerrlab;
      yyn = -yyn;
      goto yyreduce;
    }

  /* Count tokens shifted since error; after three, turn off error
     status.  */
  if (yyerrstatus)
    yyerrstatus--;

  /* Shift the lookahead token.  */
  YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc);

  /* Discard the shifted token.  */
  yychar = YYEMPTY;

  yystate = yyn;
  *++yyvsp = yylval;

  goto yynewstate;


/*-----------------------------------------------------------.
| yydefault -- do the default action for the current state.  |
`-----------------------------------------------------------*/
yydefault:
  yyn = yydefact[yystate];
  if (yyn == 0)
    goto yyerrlab;
  goto yyreduce;


/*-----------------------------.
| yyreduce -- Do a reduction.  |
`-----------------------------*/
yyreduce:
  /* yyn is the number of a rule to reduce with.  */
  yylen = yyr2[yyn];

  /* If YYLEN is nonzero, implement the default value of the action:
     `$$ = $1'.

     Otherwise, the following line sets YYVAL to garbage.
     This behavior is undocumented and Bison
     users should not rely upon it.  Assigning to YYVAL
     unconditionally makes the parser a bit smaller, and it avoids a
     GCC warning that YYVAL may be used uninitialized.  */
  yyval = yyvsp[1-yylen];


  YY_REDUCE_PRINT (yyn);
  switch (yyn)
    {
        case 2:

/* Line 1455 of yacc.c  */
#line 168 "parser.y"
    {
		currentScope++;	
		struct SymTableNode *temp;
		temp=CreateNewSymTableNode();
		temp->scope=tail[function]->scope+1;	
		tail[function]->next=temp;
		tail[function]=temp;
		empty_func=0;
	    }
    break;

  case 3:

/* Line 1455 of yacc.c  */
#line 178 "parser.y"
    {//printf("\n%d,%d\n",currentScope,function);PrintSymTable();
		  if(currentScope>0)
		  {
		      PopSym(function);
		      currentScope--;	      
		  }
		  else
		  {
		      //empty_func=1;
		      global[1]=CreateNewSymTableNode();
		      tail[1]=global[1];
		      //InsertSymTable("if",0,0,function);
		  }
	      }
    break;

  case 4:

/* Line 1455 of yacc.c  */
#line 195 "parser.y"
    {	
				if(DEBUGP){
					printf("\nidentifier->IDENTIFIER\n");
				}
				struct SymEntry *p;
				if(parameter_flag==0)
				{				      
				      p=lookup((yyvsp[(1) - (1)].string),function);
				      //printf("\nCurrent Scope %d FOUND VARIABLE -%s-\n",currentScope,$1);
				      if(p == NULL){
					      p = InsertSymTable((yyvsp[(1) - (1)].string),currentScope,IDENTIFIER,function);
					      p->linenum = linenumber;
					      p->type = 0 ;	
					      p->offset = size;
					      size = size + 4;
					      p->keywordval=0;
					      p->isPointer=0;
					      p->isArray=0;
					      p->ArrayLimit=0;
					      p->isFunction=0;
					      p->numParameters=0;
					      for(counter=0;counter<MaxPar;counter++)
						  p->ParameterList[counter]=NULL;
					      //p=lookup($1,function);
					      //p->typeName = malloc(sizeof(char)*MaxTypeLen + 1);
					      //printf("\n_____________INSERTED VARIBLE : %s PRESENT in line : %d\n",p->id,p->linenum);
				      }	
				      else if(p->scope==currentScope)
				      {
					  //printf("\nVARIBLE : %s ALREADY PRESENT in line : %d  and its type is : %d \n",p->id,p->linenum,p->type);
				      }
				      //p->linenum=linenumber;				      
				}
				else
				{
				      p=(struct SymEntry *)malloc(sizeof(struct SymEntry)); 
				      p->id=(char *)malloc(sizeof(char)*strlen((yyvsp[(1) - (1)].string))+1);
				      strcpy(p->id,(yyvsp[(1) - (1)].string));
				      p->linenum=0;
				      p->type=0;
				      p->scope=1000;				     
				      p->keywordval=0;	//UNION, INT , etc.
				    
				      p->isPointer=0;
				      p->isArray=0;
				      p->ArrayLimit=0;
				      p->isFunction=0;
				      p->offset=-1;
				      p->width=0;
				      p->numParameters=0;
				      for(counter=0;counter<MaxPar;counter++)
					  p->ParameterList[counter]=NULL;
				}
				(yyval.sym)=p;   // Now define the attributes needed for the identifier and manipulate accordingly.
				//printf("\nCurrent Scope : %d  Function Num : %d \n",currentScope,function);
				//PrintSymEntry($$);
				//printf("\n%s : Scope %d : type : %d :currentScope %d,function %d\n",$$->id,$$->scope,$$->type,currentScope,function);   
			}
    break;

  case 5:

/* Line 1455 of yacc.c  */
#line 257 "parser.y"
    {
		    if(DEBUGP){
				printf("\nconstant->INTEGER\n");
			}
		    //printf("\n\nInteger Value %d\n",$1);
		    (yyval.attr)=(struct Attribute*)malloc(sizeof(struct Attribute));
		    (yyval.attr)=initAttr((yyval.attr));
		    (yyval.attr)->IntConstValue = (long long ) ((yyvsp[(1) - (1)].intValue));
		    //$$->qualifier=1;
		    (yyval.attr)->specifier=4;		    
		    (yyval.attr)->type=400;
		   }
    break;

  case 6:

/* Line 1455 of yacc.c  */
#line 270 "parser.y"
    {
		    if(DEBUGP){
				printf("\nconstant -> LONGINTEGER\n");
			}
		    (yyval.attr)=(struct Attribute*)malloc(sizeof(struct Attribute));
		    (yyval.attr)=initAttr((yyval.attr));
		    (yyval.attr)->IntConstValue = (long long ) ((yyvsp[(1) - (1)].longIntValue));
		    //$$->qualifier=1;
		    (yyval.attr)->specifier=5;
		    (yyval.attr)->type=500;
		   }
    break;

  case 7:

/* Line 1455 of yacc.c  */
#line 282 "parser.y"
    {
		    if(DEBUGP){
				printf("\nconstant -> HEXADECIMAL\n");
			}
		    (yyval.attr)=(struct Attribute*)malloc(sizeof(struct Attribute));
		    (yyval.attr)=initAttr((yyval.attr));
		    (yyval.attr)->IntConstValue = (long long ) ((yyvsp[(1) - (1)].intValue));
		    //$$->qualifier=1;
		    (yyval.attr)->specifier=4;
		    (yyval.attr)->type=400;
		   }
    break;

  case 8:

/* Line 1455 of yacc.c  */
#line 294 "parser.y"
    {
		    if(DEBUGP){
				printf("\nconstant -> LONGHEXADECIMAL\n");
			}
		    (yyval.attr)=(struct Attribute*)malloc(sizeof(struct Attribute));
		    (yyval.attr)=initAttr((yyval.attr));
		    (yyval.attr)->IntConstValue = (long long ) ((yyvsp[(1) - (1)].longIntValue));
		    //$$->qualifier=1;
		    (yyval.attr)->specifier=5;
		    (yyval.attr)->type=500;
		   }
    break;

  case 9:

/* Line 1455 of yacc.c  */
#line 306 "parser.y"
    {
		    if(DEBUGP){
				printf("\nconstant -> DECIMALFLOAT\n");
			}
		    (yyval.attr)=(struct Attribute*)malloc(sizeof(struct Attribute));
		    (yyval.attr)=initAttr((yyval.attr));
		    (yyval.attr)->FloatConstValue = (float) ((yyvsp[(1) - (1)].floatValue));
		    //$$->qualifier=1;
		    (yyval.attr)->specifier=6;
		    (yyval.attr)->type=600;
		   }
    break;

  case 10:

/* Line 1455 of yacc.c  */
#line 318 "parser.y"
    {
		    if(DEBUGP){
				printf("\nconstant -> DECIMALDOUBLE\n");
			}
		    (yyval.attr)=(struct Attribute*)malloc(sizeof(struct Attribute));
		    (yyval.attr)=initAttr((yyval.attr));
		    (yyval.attr)->FloatConstValue = (double ) ((yyvsp[(1) - (1)].doubleValue));
		    //$$->qualifier=1;
		    (yyval.attr)->specifier=7;
		    (yyval.attr)->type=700;
		   }
    break;

  case 11:

/* Line 1455 of yacc.c  */
#line 330 "parser.y"
    {
		    if(DEBUGP){
				printf("\nconstant -> FLOATVAL\n");
			}
		    (yyval.attr)=(struct Attribute*)malloc(sizeof(struct Attribute));
		    (yyval.attr)=initAttr((yyval.attr));
		    (yyval.attr)->FloatConstValue = (float) ((yyvsp[(1) - (1)].floatValue));
		    //$$->qualifier=1;
		    (yyval.attr)->specifier=6;
		    (yyval.attr)->type=600;
		   }
    break;

  case 12:

/* Line 1455 of yacc.c  */
#line 342 "parser.y"
    {
		    if(DEBUGP){
				printf("\nconstant -> DOUBLEVAL\n");
			}
		    (yyval.attr)=(struct Attribute*)malloc(sizeof(struct Attribute));
		    (yyval.attr)=initAttr((yyval.attr));
		    (yyval.attr)->FloatConstValue = (double ) ((yyvsp[(1) - (1)].doubleValue));
		    //$$->qualifier=1;
		    (yyval.attr)->specifier=7;
		    (yyval.attr)->type=700;
		   }
    break;

  case 13:

/* Line 1455 of yacc.c  */
#line 354 "parser.y"
    {
		    if(DEBUGP){
				printf("\nconstant -> CHARACTER\n");
			}
		    (yyval.attr)=(struct Attribute*)malloc(sizeof(struct Attribute));
		    (yyval.attr)=initAttr((yyval.attr));
		    //$$->qualifier=1;
		    (yyval.attr)->specifier=2;
		    //$$->isPointer=1;
		    //$$->StringValue=(char *)malloc(sizeof(char)*2);		    
		    //$$->StringValue[0]=$1;
		    (yyval.attr)->IntConstValue=(yyvsp[(1) - (1)].charValue);
		    //$$->StringValue[1]='\0';
		    (yyval.attr)->type=200;
		   }
    break;

  case 14:

/* Line 1455 of yacc.c  */
#line 370 "parser.y"
    {
		    if(DEBUGP){
				printf("\nconstant -> ESCAPECHAR\n");
			}
		    (yyval.attr)=(struct Attribute*)malloc(sizeof(struct Attribute));
		    (yyval.attr)=initAttr((yyval.attr));
		    //$$->qualifier=1;
		    (yyval.attr)->specifier=2;
		    //$$->isPointer=1;
		    //$$->StringValue=(char *)malloc(sizeof(char)*2);		    
		    //$$->StringValue[0]=$1;
		    //$$->StringValue[1]='\0';
		    (yyval.attr)->IntConstValue=(yyvsp[(1) - (1)].charValue);
		    (yyval.attr)->type=200;
		   }
    break;

  case 15:

/* Line 1455 of yacc.c  */
#line 386 "parser.y"
    {
		    if(DEBUGP){
				printf("\nconstant -> HEXLITERAL\n");
			}
		    (yyval.attr)=(struct Attribute*)malloc(sizeof(struct Attribute));
		    (yyval.attr)=initAttr((yyval.attr));
		    //$$->qualifier=1;
		    (yyval.attr)->specifier=2;
		    (yyval.attr)->isString=1;
		    (yyval.attr)->StringValue=(char *)malloc(sizeof(char)*strlen((yyvsp[(1) - (1)].string)));		    
		    strcpy((yyval.attr)->StringValue,(yyvsp[(1) - (1)].string));
		    (yyval.attr)->type=200;
		   }
    break;

  case 16:

/* Line 1455 of yacc.c  */
#line 400 "parser.y"
    {
		    if(DEBUGP){
				printf("\nconstant -> STRING\n");
			}
		    (yyval.attr)=(struct Attribute*)malloc(sizeof(struct Attribute));
		    (yyval.attr)=initAttr((yyval.attr));
		    //$$->qualifier=1;
		    (yyval.attr)->specifier=2;
		    (yyval.attr)->isString=1;
		    (yyval.attr)->StringValue=(char *)malloc(sizeof(char)*strlen((yyvsp[(1) - (1)].string)));		    
		    strcpy((yyval.attr)->StringValue,(yyvsp[(1) - (1)].string));
		    (yyval.attr)->type=200;		    
		   }
    break;

  case 17:

/* Line 1455 of yacc.c  */
#line 416 "parser.y"
    {		
			    if(DEBUGP){
				printf("\nprimary_expression -> identifier\n");
			    }
			    if((yyvsp[(1) - (1)].sym)->type == 0)
			    {
				 error_flag=1;
				 printf ( "\nError : %s not defined\n" , (yyvsp[(1) - (1)].sym)->id );
			    }
			    //$$=(struct Attribute*)malloc(sizeof(struct Attribute));
			    //$$->type=$1->type;
			    (yyval.attr)=PassSymEntry((yyvsp[(1) - (1)].sym));
			    (yyval.attr)->specifier=(yyval.attr)->type/100;
		      }
    break;

  case 18:

/* Line 1455 of yacc.c  */
#line 431 "parser.y"
    {
		    if(DEBUGP){
				printf("\nprimary_expression -> constant\n");
			    }
			    //$$=(struct Attribute*)malloc(sizeof(struct Attribute));
			    //$$->type=$1->type;
			    (yyval.attr)=PassAttribute((yyvsp[(1) - (1)].attr));
			    (yyval.attr)->qualifier=1;
			    
			    //------------code generation-------------//
			    
			    
			    if((yyval.attr)->type==400)
			      {
				    
				    (yyval.attr)->id=(char *)malloc(10);
				    strcpy((yyval.attr)->id,getNewTemp());
				    (yyval.attr)->offset = size;
				    size = size + 4;
				    
				    
				    sprintf( s1 , "\t%s = %d\n" , (yyval.attr)->id , (int)(yyvsp[(1) - (1)].attr)->IntConstValue);
				    icg=replicate(s1);
				    sprintf( s1 , "\tli $t0 %d\n" , (int)(yyvsp[(1) - (1)].attr)->IntConstValue);
				    fcg=replicate(s1);
				    sprintf( s1 , "\tsw $t0 %s\n" , toAddr ((yyval.attr)->offset));
				    fcg=append(fcg,s1);
				    (yyval.attr)->code=replicate(fcg);
				    (yyval.attr)->icode=replicate(icg);	
    //PrintAttribute($$);
				}
				/*if($$->type==600 ) //Float ke liye
			      {
				    
				    $$->id=(char *)malloc(10);
				    strcpy($$->id,getNewTemp());
				    $$->offset = size;
				    size = size + 4;
				    
				    
				    sprintf( icg , "\t%s = %d\n" , $$->id , (int)$1->IntConstValue);
				    
				    sprintf( fcg , "\tli $t0 %d\n" , (int)$1->IntConstValue);
				    sprintf( fcg , "\tsw $t0 %s\n" , toAddr ($$->offset));
				    
				}*/
			    		    
		   }
    break;

  case 19:

/* Line 1455 of yacc.c  */
#line 480 "parser.y"
    {
		    if(DEBUGP){
				printf("\nprimary_expression -> (expression)\n");
			    }
			    (yyval.attr)=PassAttribute((yyvsp[(2) - (3)].attr));
		   }
    break;

  case 20:

/* Line 1455 of yacc.c  */
#line 491 "parser.y"
    {
		    if(DEBUGP){
				printf("\npostfix_expression -> primary_expression\n");
			}
			 (yyval.attr)=PassAttribute((yyvsp[(1) - (1)].attr));
		   }
    break;

  case 21:

/* Line 1455 of yacc.c  */
#line 498 "parser.y"
    {
		    if(DEBUGP){
				printf("\npostfix_expression -> postfix_expression[expression]\n");
			}
			(yyval.attr)=PassAttribute((yyvsp[(1) - (4)].attr));
//PrintAttribute($1);
			if((yyvsp[(1) - (4)].attr)->isArray!=1)
			{
			      printf("\nError :Trying to access an index of a non array.\n");
			      error_flag=1;
			}
			else    
			{
			    (yyval.attr)->isArray=0;
			   //char *fcg , * icg , s1[10000];
			    (yyval.attr)->id = getNewTemp();
			    if(assign_flag==1)
			    {
				(yyval.attr)->offset = size;
				size += 4;
				icg=replicate((yyvsp[(3) - (4)].attr)->icode);
				fcg=replicate((yyvsp[(3) - (4)].attr)->code);
				sprintf( s1 , "\t%s = %s[%s]\n" , (yyval.attr)->id , (yyvsp[(1) - (4)].attr)->id , (yyvsp[(3) - (4)].attr)->id );
				icg = append(icg,s1);
	      
				sprintf( s1 , "\tli $t0 %d\n",(yyvsp[(1) - (4)].attr)->offset);
				fcg=append(fcg,s1);
				sprintf( s1 , "\tlw $t1 %s\n",toAddr((yyvsp[(3) - (4)].attr)->offset));
				fcg=append(fcg,s1);				

				sprintf( s1 , "\tsll $t1 $t1 2\n");
				fcg=append(fcg,s1);
				
				sprintf( s1 , "\tadd $t0 $t0 $t1\n");
				fcg=append(fcg,s1);
				sprintf( s1 , "\tsub $t1 $sp $t0\n");
				fcg=append(fcg,s1);
				sprintf( s1 , "\tlw $t1 0($t1)\n");
				fcg=append(fcg,s1);
				sprintf( s1 , "\tsw $t1 %s\n",toAddr((yyval.attr)->offset));
				fcg=append(fcg,s1);
				(yyval.attr)->icode=replicate(icg);
				(yyval.attr)->code=replicate(fcg);
			 }
			  else
			  {
			      (yyval.attr)->qualifier=3;
			      (yyval.attr)->offset = size;
				size += 4;
			    				
				sprintf( s1 , "\t%s = %s[%s]\n" , (yyval.attr)->id , (yyvsp[(1) - (4)].attr)->id , (yyvsp[(3) - (4)].attr)->id );
				icg = replicate(s1);
	      
				fcg=replicate((yyvsp[(3) - (4)].attr)->code);
				sprintf( s1 , "\tli $t0 %d\n",(yyvsp[(1) - (4)].attr)->offset);
				fcg=append(fcg,s1);
				sprintf( s1 , "\tlw $t1 %s\n",toAddr((yyvsp[(3) - (4)].attr)->offset));
				fcg=append(fcg,s1);
				
				sprintf( s1 , "\tsll $t1 $t1 2\n");
				fcg=append(fcg,s1);
				
				sprintf( s1 , "\tadd $t0 $t0 $t1\n");
				fcg=append(fcg,s1);
				sprintf( s1 , "\tsub $t1 $sp $t0\n");
				fcg=append(fcg,s1);
				sprintf( s1 , "\tsw $t1 %s\n",toAddr((yyval.attr)->offset));
				fcg=append(fcg,s1);
				(yyval.attr)->icode=replicate(icg);
				(yyval.attr)->code=replicate(fcg);
			    }
			}
			//$$->ArrayLimit=(int)$3->IntConstValue+1; //Assuming the accessed is the highest index.
		   }
    break;

  case 22:

/* Line 1455 of yacc.c  */
#line 573 "parser.y"
    {
		    if(DEBUGP){
				printf("\npostfix_expression -> postfix_expression()\n");
			}
			(yyval.attr)=PassAttribute((yyvsp[(1) - (3)].attr));
			
			if((yyvsp[(1) - (3)].attr)->isFunction!=1)
			{
			      printf("\nError :Trying to access an index of a non array.\n");
			      error_flag=1;
			}
			(yyval.attr)->isFunction=0;	//We do not consider a function call as a function.	
			if(error_flag==0)
			{
			    
			    (yyval.attr)->id=getNewTemp();
			    (yyval.attr)->offset=size;
			    size+=4;
			    fcg=replicate("");
			    icg=replicate("");			 			    

			    sprintf(s1,"\taddi $sp $sp %d\n",MaxFunctionLength);
			    fcg=append(fcg,s1);
			    sprintf(s1,"\tGOOjal %s\n",(yyvsp[(1) - (3)].attr)->id);
			    fcg=append(fcg,s1);
			    if((yyvsp[(1) - (3)].attr)->type!=100)
			    {
				  sprintf(s1,"\t%s = call function %s\n",(yyval.attr)->id,(yyvsp[(1) - (3)].attr)->id);
				  icg=append(icg,s1);
				  sprintf(s1,"\tlw $t0 %s\n",toAddr(0));
			    }
			    else
			    {
				  sprintf(s1,"\tcall function %s\n",(yyvsp[(1) - (3)].attr)->id);
				  icg=append(icg,s1);
				  sprintf(s1,"\tli $t0 $0\n");
			    }
			    fcg=append(fcg,s1);
			    sprintf(s1,"\taddi $sp $sp -%d\n",MaxFunctionLength);
			    fcg=append(fcg,s1);
			    sprintf(s1,"\tsw $t0 %s\n",toAddr((yyval.attr)->offset));
			    fcg=append(fcg,s1);
			    (yyval.attr)->code=replicate(fcg);
			      (yyval.attr)->icode=replicate(icg);
			}
		   }
    break;

  case 23:

/* Line 1455 of yacc.c  */
#line 620 "parser.y"
    {
		    if(DEBUGP){
				printf("\npostfix_expression -> postfix_expression(argument_expression_list)\n");
			}//PrintAttribute($3);
			(yyval.attr)=PassAttribute((yyvsp[(1) - (4)].attr));
			(yyval.attr)->isFunction=0; //We do not consider a function call as a function.
			(yyval.attr)->numParameters=0;

			if((yyvsp[(1) - (4)].attr)->isFunction!=1)
			{
			      //$$->isFunction=0;
			      printf("\nError :Trying to access a non-function as a function.\n");
			      error_flag=1;
			      			      
			      /*for(counter=0;counter<$3->numParameters;counter++)
			      {
				    $$->ParameterList[counter]=PassAttribute($3->ParameterList[counter]);
			      }*/
			}
			else
			{
			    
			    /*if($1->numParameters!=$3->numParameters)
			    {
				  error_flag=1;
				  printf("\nError : Parameters do not match\n");
			    }
			    else*/
			    {
				for(counter=0;counter<(yyvsp[(1) - (4)].attr)->numParameters;counter++)
				{
				      if((yyvsp[(1) - (4)].attr)->ParameterList[counter]->type!=(yyvsp[(3) - (4)].attr)->ParameterList[counter]->type)
				      {
					    error_flag=1;
					    printf("\nError : Parameter %d 's Type does not match\n",counter);
				      }
				}
			    }
			}
			if(error_flag==0)
			{	//PrintAttribute($3);
			    if(strcmp((yyvsp[(1) - (4)].attr)->id,"print_t")==0)
			    {
				 
				  (yyval.attr)->id=getNewTemp();
				  icg=replicate((yyvsp[(3) - (4)].attr)->icode);
				  fcg=replicate((yyvsp[(3) - (4)].attr)->code);
				  sprintf(s1,"\n\tprint_t %s\n\n",(yyvsp[(3) - (4)].attr)->ParameterList[0]->id);
				  icg=append(icg,s1);

				  sprintf(s1,"\n\tlw $t0 %s\n",toAddr((yyvsp[(3) - (4)].attr)->ParameterList[0]->offset));
				  fcg=append(fcg,s1);
				  sprintf(s1,"\tli $v0 1\n");
				  fcg=append(fcg,s1);
				  sprintf(s1,"\tmove $a0 $t0\n");
				  fcg=append(fcg,s1);
				  sprintf(s1,"\tsyscall\n");
				  fcg=append(fcg,s1);
				  sprintf(s1,"\tli $v0 4\n");
				  fcg=append(fcg,s1);
				  sprintf(s1,"\tla $a0 str\n");
				  fcg=append(fcg,s1);
				  sprintf(s1,"\tsyscall\n\n");
				  fcg=append(fcg,s1);

				  (yyval.attr)->icode=replicate(icg);
				  (yyval.attr)->code=replicate(fcg);
			    }
			    else
			    {

				
				(yyval.attr)->id=getNewTemp();
				(yyval.attr)->offset=size;
				size+=4;
				fcg=replicate((yyvsp[(3) - (4)].attr)->code);
				icg=replicate((yyvsp[(3) - (4)].attr)->icode);
    //printf("\n%s\n%s\n",fcg,icg);
				for(counter=0;counter<(yyvsp[(3) - (4)].attr)->numParameters;counter++)
				{
				    sprintf(s1,"\tlw $t0 %s\n",toAddr((yyvsp[(3) - (4)].attr)->ParameterList[counter]->offset));
				    fcg=append(fcg,s1);
				    sprintf(s1,"\tsw $t0 %d($sp)\n",(MaxFunctionLength-(counter+1)*4));
				    fcg=append(fcg,s1);

				    sprintf(s1,"\tparam %s\n",(yyvsp[(3) - (4)].attr)->ParameterList[counter]->id);
				    icg=append(icg,s1);
				    
				}
				

				sprintf(s1,"\taddi $sp $sp %d\n",MaxFunctionLength);
				fcg=append(fcg,s1);
				sprintf(s1,"\tjal %s\n",(yyvsp[(1) - (4)].attr)->id);
				fcg=append(fcg,s1);
				if((yyvsp[(1) - (4)].attr)->type!=100)
				{
				      sprintf(s1,"\t%s = call function %s\n",(yyval.attr)->id,(yyvsp[(1) - (4)].attr)->id);
				      icg=append(icg,s1);
				      sprintf(s1,"\tlw $t0 %s\n",toAddr(0));
				}
				else
				{
				      sprintf(s1,"\tcall function %s\n",(yyvsp[(1) - (4)].attr)->id);
				      icg=append(icg,s1);
				      sprintf(s1,"\tli $t0 $0\n");
				}
				fcg=append(fcg,s1);
				sprintf(s1,"\taddi $sp $sp -%d\n",MaxFunctionLength);
				fcg=append(fcg,s1);
				sprintf(s1,"\tsw $t0 %s\n",toAddr((yyval.attr)->offset));
				fcg=append(fcg,s1);
				  (yyval.attr)->code=replicate(fcg);
				  (yyval.attr)->icode=replicate(icg);//PrintAttribute($);
			    }
			}
			    
		   }
    break;

  case 24:

/* Line 1455 of yacc.c  */
#line 739 "parser.y"
    {
		    if(DEBUGP){
				printf("\npostfix_expression -> postfix_expression.identifier\n");
			}
		   }
    break;

  case 25:

/* Line 1455 of yacc.c  */
#line 745 "parser.y"
    {
		    if(DEBUGP){
				printf("\npostfix_expression -> postfix_expression PTR_OP identifier\n");
			}
		   }
    break;

  case 26:

/* Line 1455 of yacc.c  */
#line 751 "parser.y"
    {
		    if(DEBUGP){
				printf("\npostfix_expression -> postfix_expression INC_OP\n");
			}
			(yyval.attr)=PassAttribute((yyvsp[(1) - (2)].attr));
			if((yyvsp[(1) - (2)].attr)->specifier == 1||(yyvsp[(1) - (2)].attr)->specifier ==10 ||(yyvsp[(1) - (2)].attr)->specifier ==11 ||(yyvsp[(1) - (2)].attr)->specifier ==12 ||(yyvsp[(1) - (2)].attr)->specifier ==13||(yyvsp[(1) - (2)].attr)->specifier ==14 || (yyvsp[(1) - (2)].attr)-> isString==1||(yyvsp[(1) - (2)].attr)->specifier==1)
			{
			    error_flag=1;
			    printf("\nError : Cannot perform ++ on this kind of data type.\n");
			}
			
			
			(yyval.attr)->offset = size;
			size = size + 4 ;
			(yyval.attr)->id = (char*) malloc(10);
			strcpy((yyval.attr)->id,getNewTemp());
			//printf("\n------------------%d\n",assign_flag);
			  sprintf( s1 , "%s\t%s++\n",(yyvsp[(1) - (2)].attr)->icode,(yyvsp[(1) - (2)].attr)->id );
			  icg=replicate(s1);

			  sprintf( s1 , "%s\tlw $t0 %s\n" ,(yyvsp[(1) - (2)].attr)->code, toAddr((yyvsp[(1) - (2)].attr)->offset) );
			  fcg=replicate(s1);
			  if(assign_flag==1)
			  {
				  sprintf( s1 , "\tsw $t0 %s\n" , toAddr((yyval.attr)->offset) );
				  fcg = append(fcg , s1);
				  sprintf( s1 , "\taddi $t0 $t0 1\n");
				  fcg=append(fcg,s1);
				  sprintf( s1 , "\tsw $t0 %s\n" , toAddr((yyvsp[(1) - (2)].attr)->offset) );
			  }
			  else
			  {
				  sprintf( s1 , "\taddi $t0 $t0 1\n");
				  fcg=append(fcg,s1);
				  sprintf( s1 , "\tsw $t0 %s\n" , toAddr((yyvsp[(1) - (2)].attr)->offset) );
				  fcg = append(fcg , s1);
				  sprintf( s1 , "\tsw $t0 %s\n" , toAddr((yyval.attr)->offset) );
			  }
			  fcg = append(fcg , s1);

			  (yyval.attr)->code=replicate(fcg);
			  (yyval.attr)->icode=replicate(icg);
		   }
    break;

  case 27:

/* Line 1455 of yacc.c  */
#line 795 "parser.y"
    {
		    if(DEBUGP){
				printf("\npostfix_expression -> postfix_expression DEC_OP\n");
			}
			(yyval.attr)=PassAttribute((yyvsp[(1) - (2)].attr));
			if((yyvsp[(1) - (2)].attr)->specifier == 1||(yyvsp[(1) - (2)].attr)->specifier ==10 ||(yyvsp[(1) - (2)].attr)->specifier ==11 ||(yyvsp[(1) - (2)].attr)->specifier ==12 ||(yyvsp[(1) - (2)].attr)->specifier ==13||(yyvsp[(1) - (2)].attr)->specifier ==14 || (yyvsp[(1) - (2)].attr)-> isString==1||(yyvsp[(1) - (2)].attr)->specifier==1)
			{
			    error_flag=1;
			    printf("\nError : Cannot perform -- on this kind of data type.\n");
			}
			  
				  
			  (yyval.attr)->offset = size;
			  size = size + 4 ;
			  (yyval.attr)->id = (char*) malloc(10);
			  strcpy((yyval.attr)->id,getNewTemp());
			  
			  sprintf( s1 , "%s\t%s--\n",(yyvsp[(1) - (2)].attr)->icode,(yyvsp[(1) - (2)].attr)->id );
			  icg=replicate(s1);

			  sprintf( s1 , "%s\tlw $t0 %s\n" ,(yyvsp[(1) - (2)].attr)->code, toAddr((yyvsp[(1) - (2)].attr)->offset) );
			  fcg=replicate(s1);

			if(assign_flag==1)
			  {
				  sprintf( s1 , "\tsw $t0 %s\n" , toAddr((yyval.attr)->offset) );
				  fcg = append(fcg , s1);
				  sprintf( s1 , "\taddi $t0 $t0 -1\n");
				  fcg=append(fcg,s1);
				  sprintf( s1 , "\tsw $t0 %s\n" , toAddr((yyvsp[(1) - (2)].attr)->offset) );
				  fcg = append(fcg , s1);
			  }
			  else
			  {				  
				  sprintf( s1 , "\taddi $t0 $t0 -1\n");
				  fcg=append(fcg,s1);
				  sprintf( s1 , "\tsw $t0 %s\n" , toAddr((yyvsp[(1) - (2)].attr)->offset) );
				  fcg = append(fcg , s1);
				  sprintf( s1 , "\tsw $t0 %s\n" , toAddr((yyval.attr)->offset) );
				  fcg = append(fcg , s1);
			  }

			  (yyval.attr)->code=replicate(fcg);
			  (yyval.attr)->icode=replicate(icg);
		   }
    break;

  case 28:

/* Line 1455 of yacc.c  */
#line 844 "parser.y"
    {
		    if(DEBUGP){
				printf("\nargument_expression_list -> assignment_expression\n");
			}
			(yyval.attr)=(struct Attribute*)malloc(sizeof (struct Attribute));
			(yyval.attr)=initAttr((yyval.attr));
			(yyval.attr)->ParameterList[0]=PassAttribute((yyvsp[(1) - (1)].attr));
			(yyval.attr)->numParameters=1;
			(yyval.attr)->code=replicate((yyvsp[(1) - (1)].attr)->code);
			(yyval.attr)->icode=replicate((yyvsp[(1) - (1)].attr)->icode);
			//PrintAttribute($$);
		   }
    break;

  case 29:

/* Line 1455 of yacc.c  */
#line 857 "parser.y"
    {
		    if(DEBUGP){
				printf("\nargument_expression_list -> argument_expression_list , assignment_expression\n");
			}
			(yyval.attr)=PassAttribute((yyvsp[(1) - (3)].attr));
			(yyval.attr)->ParameterList[(yyval.attr)->numParameters]=PassAttribute((yyvsp[(3) - (3)].attr));
			(yyval.attr)->numParameters++;
			if((yyvsp[(3) - (3)].attr)->code!=NULL)
			{
			(yyval.attr)->code=append((yyval.attr)->code,(yyvsp[(3) - (3)].attr)->code);
			(yyval.attr)->icode=append((yyval.attr)->icode,(yyvsp[(3) - (3)].attr)->icode);
			}
			//PrintAttribute($$);
		   }
    break;

  case 30:

/* Line 1455 of yacc.c  */
#line 875 "parser.y"
    {
		    if(DEBUGP){
				printf("\nunary_expression -> postfix_expression\n");
			}
			(yyval.attr)=PassAttribute((yyvsp[(1) - (1)].attr));
		   }
    break;

  case 31:

/* Line 1455 of yacc.c  */
#line 882 "parser.y"
    {
		    if(DEBUGP){
				printf("\nunary_expression -> INC_OP unary_expression\n");
			}
			(yyval.attr)=PassAttribute((yyvsp[(2) - (2)].attr));
			
			if((yyvsp[(2) - (2)].attr)->specifier == 1||(yyvsp[(2) - (2)].attr)->specifier ==10 ||(yyvsp[(2) - (2)].attr)->specifier ==11 ||(yyvsp[(2) - (2)].attr)->specifier ==12 ||(yyvsp[(2) - (2)].attr)->specifier ==13||(yyvsp[(2) - (2)].attr)->specifier ==14 || (yyvsp[(2) - (2)].attr)-> isString==1||(yyvsp[(2) - (2)].attr)->qualifier==1)
			{
			    error_flag=1;
			    printf("\nCannot perform preincrement ++ on this kind of data type.\n");
			}

		    
				  
				  (yyval.attr)->offset = size;
				  size = size + 4 ;
				  (yyval.attr)->id = (char*) malloc(10);
				  strcpy((yyval.attr)->id,getNewTemp());
				  
				  sprintf( s1 , "%s\t++%s\n",(yyvsp[(2) - (2)].attr)->icode,(yyvsp[(2) - (2)].attr)->id );
				  icg=replicate(s1);

				  sprintf( s1 , "%s\tlw $t0 %s\n" ,(yyvsp[(2) - (2)].attr)->code, toAddr((yyvsp[(2) - (2)].attr)->offset) );
				  fcg=replicate(s1);
				  sprintf( s1 , "\taddi $t0 $t0 1\n");
				  fcg=append(fcg,s1);
				  sprintf( s1 , "\tsw $t0 %s\n" , toAddr((yyval.attr)->offset) );
				  fcg = append(fcg , s1);
				  sprintf( s1 , "\tsw $t0 %s\n" , toAddr((yyvsp[(2) - (2)].attr)->offset) );
				  fcg = append(fcg , s1);
				  (yyval.attr)->code=replicate(fcg);
				  (yyval.attr)->icode=replicate(icg);
			

		   }
    break;

  case 32:

/* Line 1455 of yacc.c  */
#line 918 "parser.y"
    {
		    if(DEBUGP){
				printf("\nunary_expression -> DEC_OP unary_expression\n");
			}
			(yyval.attr)=PassAttribute((yyvsp[(2) - (2)].attr));
			
			if((yyvsp[(2) - (2)].attr)->specifier == 1||(yyvsp[(2) - (2)].attr)->specifier ==10 ||(yyvsp[(2) - (2)].attr)->specifier ==11 ||(yyvsp[(2) - (2)].attr)->specifier ==12 ||(yyvsp[(2) - (2)].attr)->specifier ==13||(yyvsp[(2) - (2)].attr)->specifier ==14 || (yyvsp[(2) - (2)].attr)-> isString==1||(yyvsp[(2) - (2)].attr)->qualifier==1)
			{
			    error_flag=1;
			    printf("\nCannot perform pre -- on this kind of data type.\n");
			}

	  

				
				  
				  (yyval.attr)->offset = size;
				  size = size + 4 ;
				  (yyval.attr)->id = (char*) malloc(10);
				  strcpy((yyval.attr)->id,getNewTemp());
				  
				  sprintf( s1 , "%s\t++%s\n",(yyvsp[(2) - (2)].attr)->icode,(yyvsp[(2) - (2)].attr)->id );
				  icg=replicate(s1);

				  sprintf( s1 , "%s\tlw $t0 %s\n" ,(yyvsp[(2) - (2)].attr)->code, toAddr((yyvsp[(2) - (2)].attr)->offset) );
				  fcg=replicate(s1);
				  sprintf( s1 , "\taddi $t0 $t0 -1\n");
				  fcg=append(fcg,s1);
				  sprintf( s1 , "\tsw $t0 %s\n" , toAddr((yyval.attr)->offset) );
				  fcg = append(fcg , s1);
				  sprintf( s1 , "\tsw $t0 %s\n" , toAddr((yyvsp[(2) - (2)].attr)->offset) );
				  fcg = append(fcg , s1);
				  (yyval.attr)->code=replicate(fcg);
				  (yyval.attr)->icode=replicate(icg);




		   }
    break;

  case 33:

/* Line 1455 of yacc.c  */
#line 958 "parser.y"
    {
		    if(DEBUGP){
				printf("\nunary_expression -> unary_operator cast_expression\n");
			}
			
			(yyval.attr)=PassAttribute((yyvsp[(2) - (2)].attr));			
			
	      
			if((yyvsp[(1) - (2)].charValue) == '!')
			{
			       //------------code generation-------------
				  (yyval.attr)->offset = size;
				  size = size + 4 ;
				  (yyval.attr)->id = (char*) malloc(10);
				  strcpy((yyval.attr)->id,getNewTemp());
				  
				  sprintf( s1 , "%s\t%s = !%s\n",(yyvsp[(2) - (2)].attr)->icode,(yyval.attr)->id , (yyvsp[(2) - (2)].attr)->id );
				  icg=replicate(s1);

				  sprintf( s1 , "%s\tlw $t0 %s\n" ,(yyvsp[(2) - (2)].attr)->code, toAddr((yyvsp[(2) - (2)].attr)->offset) );
				  fcg=replicate(s1);
				  sprintf( s1 , "\tli $t1 0\n");
				  fcg = append(fcg , s1);
				  sprintf( s1 , "\tslt $t2 $t0 $t1\n" );
				  fcg = append(fcg , s1);
				  sprintf( s1 , "\tslt $t3 $t1 $t0\n");
				  fcg = append(fcg , s1);
				  sprintf( s1 , "\tadd $t1 $t2 $t3\n");
				  fcg = append(fcg , s1);
				  sprintf( s1 , "\tli $t0 1\n");
				  fcg = append(fcg , s1);
				  sprintf( s1 , "\tsub $t0 $t0 $t1\n");
				  fcg = append(fcg , s1);
				  sprintf( s1 , "\tsw $t0 %s\n" , toAddr((yyval.attr)->offset) );
				  fcg = append(fcg , s1);
				  (yyval.attr)->code=replicate(fcg);
				  (yyval.attr)->icode=replicate(icg);
			}
      
		      if((yyvsp[(1) - (2)].charValue) == '~')
		      {
				  (yyval.attr)->offset = size;
				  size = size + 4 ;
				  (yyval.attr)->id = (char*) malloc(10);
				  strcpy((yyval.attr)->id,getNewTemp());
				  
				  sprintf( s1 , "%s\t%s = !%s\n",(yyvsp[(2) - (2)].attr)->icode,(yyval.attr)->id , (yyvsp[(2) - (2)].attr)->id );
				  icg=replicate(s1);

				  sprintf( s1 , "%s\tlw $t0 %s\n" ,(yyvsp[(2) - (2)].attr)->code, toAddr((yyvsp[(2) - (2)].attr)->offset) );
				  fcg=replicate(s1);
				  sprintf( s1 , "\tnor $t1 $t0 $0\n");
				  fcg = append(fcg , s1);
				  sprintf( s1 , "\tsw $t1 %s\n" , toAddr((yyval.attr)->offset) );
				  fcg = append(fcg , s1);
				  (yyval.attr)->code=replicate(fcg);
				  (yyval.attr)->icode=replicate(icg);
			  }
			
		      if((yyvsp[(1) - (2)].charValue) == '-')
		      {
				  (yyval.attr)->offset = size;
				  size = size + 4 ;
				  (yyval.attr)->id = (char*) malloc(10);
				  strcpy((yyval.attr)->id,getNewTemp());
				  
				  sprintf( s1 , "%s\t%s = !%s\n",(yyvsp[(2) - (2)].attr)->icode,(yyval.attr)->id , (yyvsp[(2) - (2)].attr)->id );
				  icg=replicate(s1);

				  sprintf( s1 , "%s\tlw $t0 %s\n" ,(yyvsp[(2) - (2)].attr)->code, toAddr((yyvsp[(2) - (2)].attr)->offset) );
				  fcg=replicate(s1);
				  sprintf( s1 , "\tsub $t1 $0 $t0\n");
				  fcg = append(fcg , s1);
				  sprintf( s1 , "\tsw $t1 %s\n" , toAddr((yyval.attr)->offset) );
				  fcg = append(fcg , s1);
				  (yyval.attr)->code=replicate(fcg);
				  (yyval.attr)->icode=replicate(icg);
			  }
			if((yyvsp[(1) - (2)].charValue) == '&')
			{
				  (yyval.attr)->offset = size;
				  size = size + 4 ;
				  (yyval.attr)->id = (char*) malloc(10);
				  strcpy((yyval.attr)->id,getNewTemp());
				  
				  sprintf( s1 , "%s\t%s = &%s\n",(yyvsp[(2) - (2)].attr)->icode,(yyval.attr)->id , (yyvsp[(2) - (2)].attr)->id );
				  icg=replicate(s1);
			
				  fcg=replicate((yyvsp[(2) - (2)].attr)->code);
				  sprintf( s1 , "%s\n\n\tli $t0 %d\n" ,(yyvsp[(2) - (2)].attr)->code, ((yyvsp[(2) - (2)].attr)->offset) );
				  fcg=append(fcg,s1);
				  sprintf( s1 , "\tsub $t1 $sp $t0\n");
				  fcg = append(fcg , s1);
				  sprintf( s1 , "\tsw $t1 %s\n" , toAddr((yyval.attr)->offset) );
				  fcg = append(fcg , s1);
				  (yyval.attr)->code=replicate(fcg);
				  (yyval.attr)->icode=replicate(icg);
			  }
			  if((yyvsp[(1) - (2)].charValue) == '*')
			{
				  (yyval.attr)->isPointer=0;
				//char *fcg , * icg , s1[10000];
				  (yyval.attr)->id = getNewTemp();
			      if((yyvsp[(2) - (2)].attr)->isPointer!=1)
			      {
				     error_flag=1;
				     printf("\nError : Invalid Operation on a non-pointer\n");
			      }
			      else
			      {
				  if(assign_flag==1)
				  {
				      (yyval.attr)->offset = size;
				      size += 4;
				      sprintf( s1 , "\t%s = *%s\n" , (yyval.attr)->id , (yyvsp[(2) - (2)].attr)->id );
				      icg = append(icg,s1);
		    
				      sprintf( s1 , "\tlw $t0 %s\n",toAddr((yyvsp[(2) - (2)].attr)->offset));
				      fcg=append(fcg,s1);
				    
				      sprintf( s1 , "\tlw $t1 0($t0)\n",toAddr((yyvsp[(2) - (2)].attr)->offset));
				      fcg=append(fcg,s1);				

				      sprintf( s1 , "\tsw $t1 %s\n",toAddr((yyval.attr)->offset));
				      fcg=append(fcg,s1);
				      (yyval.attr)->icode=replicate(icg);
				      (yyval.attr)->code=replicate(fcg);
				}
				else
				{
				      (yyval.attr)->qualifier=3;
				      (yyval.attr)->offset = size;
				      size += 4;
							      
				      sprintf( s1 , "\t%s = Address of *%s\n" , (yyval.attr)->id , (yyvsp[(2) - (2)].attr)->id );
				      icg = replicate(s1);
		    
				      fcg=replicate((yyvsp[(2) - (2)].attr)->code);
				      
				      sprintf( s1 , "\tlw $t0 %s\n",toAddr((yyvsp[(2) - (2)].attr)->offset));
				      fcg=append(fcg,s1);
				      
				      sprintf( s1 , "\tsw $t0 %s\n",toAddr((yyval.attr)->offset));
				      fcg=append(fcg,s1);
				      (yyval.attr)->icode=replicate(icg);
				      (yyval.attr)->code=replicate(fcg);
				  }
			      }
			  }


		   }
    break;

  case 34:

/* Line 1455 of yacc.c  */
#line 1111 "parser.y"
    {
		    if(DEBUGP){
				printf("\nunary_expression -> SIZEOF unary_expression\n");
			}
			(yyval.attr)=(struct Attribute*)malloc(sizeof (struct Attribute));
			(yyval.attr)=initAttr((yyval.attr));
			(yyval.attr)->IntConstValue = (long long ) ((yyvsp[(2) - (2)].attr)->width); //Yahan kuch hona chahiye lekin kya??
			(yyval.attr)->qualifier=1;
			(yyval.attr)->specifier=5;
			(yyval.attr)->type=500;
		   }
    break;

  case 35:

/* Line 1455 of yacc.c  */
#line 1123 "parser.y"
    {
		    if(DEBUGP){
				printf("\nunary_expression -> SIZEOF ( type_name )\n");
			}
			(yyval.attr)=(struct Attribute*)malloc(sizeof (struct Attribute));
			(yyval.attr)=initAttr((yyval.attr));
			(yyval.attr)->IntConstValue = (long long ) ((yyvsp[(3) - (4)].attr)->width); //Yahan kuch hona chahiye lekin kya??
			(yyval.attr)->qualifier=1;
			(yyval.attr)->specifier=5;
			(yyval.attr)->type=500;
		   }
    break;

  case 36:

/* Line 1455 of yacc.c  */
#line 1138 "parser.y"
    {
		    if(DEBUGP){
				printf("\nunary_operator -> &\n");
			}
		     (yyval.charValue)='&'; 
		   }
    break;

  case 37:

/* Line 1455 of yacc.c  */
#line 1145 "parser.y"
    {
		    if(DEBUGP){
				printf("\nunary_operator -> *\n");
			}
		    (yyval.charValue)='*';
		   }
    break;

  case 38:

/* Line 1455 of yacc.c  */
#line 1152 "parser.y"
    {
		    if(DEBUGP){
				printf("\nunary_operator -> +\n");
			}
		    (yyval.charValue)='+';
		   }
    break;

  case 39:

/* Line 1455 of yacc.c  */
#line 1159 "parser.y"
    {
		    if(DEBUGP){
				printf("\nunary_operator -> -\n");
			}
		    (yyval.charValue)='-';
		   }
    break;

  case 40:

/* Line 1455 of yacc.c  */
#line 1166 "parser.y"
    {
		    if(DEBUGP){
				printf("\nunary_operator -> ~\n");
			}
		    (yyval.charValue)='~';
		   }
    break;

  case 41:

/* Line 1455 of yacc.c  */
#line 1173 "parser.y"
    {
		    if(DEBUGP){
				printf("\nunary_operator -> !\n");
			}
		    (yyval.charValue)='!';
		   }
    break;

  case 42:

/* Line 1455 of yacc.c  */
#line 1183 "parser.y"
    {
		    if(DEBUGP){
				printf("\ncast_expression -> unary_expression\n");
			}
			(yyval.attr)=PassAttribute((yyvsp[(1) - (1)].attr));
		   }
    break;

  case 43:

/* Line 1455 of yacc.c  */
#line 1190 "parser.y"
    {
		    //type casting done int/long/char/float/double
		    if(DEBUGP){
				printf("\ncast_expression -> ( type_name ) cast_expression\n");
			}
			(yyval.attr)=PassAttribute((yyvsp[(2) - (4)].attr));
			if((yyvsp[(4) - (4)].attr)->id!=NULL)
			{
			    (yyval.attr)->id=(char *)malloc(sizeof(char)*strlen((yyvsp[(4) - (4)].attr)->id)+1);
			    strcpy((yyval.attr)->id,(yyvsp[(4) - (4)].attr)->id);//*******Wapas yahan se karna hai
			}
			if((yyvsp[(4) - (4)].attr)->isArray==1 || (yyvsp[(4) - (4)].attr)->isString==1)
			{
			    error_flag=1;
			    printf("\nError : Cannot Type Cast an Array or a String\n");
			}
			else
			{
			    //printf("\n$2-specifier %d $4-specifier %d\n",$2-specifiew);
			    (yyval.attr)->scope=(yyvsp[(4) - (4)].attr)->scope;
			    if(((yyvsp[(2) - (4)].attr)->specifier==4 || (yyvsp[(2) - (4)].attr)->specifier==5) && ((yyvsp[(4) - (4)].attr)->specifier==4 || (yyvsp[(4) - (4)].attr)->specifier==5)) 
			    {
				(yyval.attr)->IntConstValue=(yyvsp[(4) - (4)].attr)->IntConstValue;
			    }
			    else if(((yyvsp[(2) - (4)].attr)->specifier==4 || (yyvsp[(2) - (4)].attr)->specifier==5) && ((yyvsp[(4) - (4)].attr)->specifier==6 || (yyvsp[(4) - (4)].attr)->specifier==7)) 
			    {
				(yyval.attr)->IntConstValue=(long long)(yyvsp[(4) - (4)].attr)->FloatConstValue;
			    }
			    else if(((yyvsp[(2) - (4)].attr)->specifier==6 || (yyvsp[(2) - (4)].attr)->specifier==7) && ((yyvsp[(4) - (4)].attr)->specifier==4 || (yyvsp[(4) - (4)].attr)->specifier==5)) 
			    {
				(yyval.attr)->FloatConstValue=(double)(yyvsp[(4) - (4)].attr)->IntConstValue;
			    }
			    else if(((yyvsp[(2) - (4)].attr)->specifier==6 || (yyvsp[(2) - (4)].attr)->specifier==7) && ((yyvsp[(4) - (4)].attr)->specifier==6 || (yyvsp[(4) - (4)].attr)->specifier==7)) 
			    {
				(yyval.attr)->FloatConstValue=(yyvsp[(4) - (4)].attr)->FloatConstValue;
			    }
			    else if(((yyvsp[(2) - (4)].attr)->specifier==4 || (yyvsp[(2) - (4)].attr)->specifier==5) && ((yyvsp[(4) - (4)].attr)->specifier==2)) 
			    {
				(yyval.attr)->IntConstValue=(int)(yyvsp[(4) - (4)].attr)->StringValue[0];
			    }
			    else
			    {
				error_flag=1;
				printf("\nError : Unsupported Casting for this Compiler\n");
			    }
			    /*
			    $$->IntConst=$4->IntConst;			    
			    if($4->StringValue!=NULL)
			    {
				$$->StringValue=(char *)malloc(sizeof(char)*strlen($4->StringValue)+1);
				strcpy($$->StringValue,$4->StringValue);
			    }*/
			 }
		   }
    break;

  case 44:

/* Line 1455 of yacc.c  */
#line 1248 "parser.y"
    {
		    if(DEBUGP){
				printf("\nmultiplicative_expression -> cast_expression\n");
			}
			(yyval.attr)=PassAttribute((yyvsp[(1) - (1)].attr));
		   }
    break;

  case 45:

/* Line 1455 of yacc.c  */
#line 1255 "parser.y"
    {
		    if(DEBUGP){
				printf("\nmultiplicative_expression -> multiplicative_expression '*' cast_expression\n");
			}
			error_flag=CheckBeforeMerge((yyvsp[(1) - (3)].attr),(yyvsp[(3) - (3)].attr));
			if(error_flag==1) // Incompatible in operations.
			{
				printf("\nError : Cannot multiply incompatible data types.\n");
				(yyval.attr)=PassAttribute((yyvsp[(1) - (3)].attr)); //As a part of error recovery.
			}
			else
			{
				  (yyval.attr)=MergeAttributes3Code((yyvsp[(1) - (3)].attr),(yyvsp[(3) - (3)].attr));
				  (yyval.attr)->qualifier=2;


				    
				  (yyval.attr)=MergeAttributes3Code((yyvsp[(1) - (3)].attr),(yyvsp[(3) - (3)].attr));
				  (yyval.attr)->qualifier=2;
				  //--------------------------code generation ---------------------
				  (yyval.attr)->offset = size;
				  size = size + 4 ;
				  (yyval.attr)->id = (char*) malloc(10);
				  strcpy((yyval.attr)->id,getNewTemp());
				  
				  sprintf( s1 , "%s%s\t%s = %s * %s\n",(yyvsp[(1) - (3)].attr)->icode,(yyvsp[(3) - (3)].attr)->icode,(yyval.attr)->id , (yyvsp[(1) - (3)].attr)->id , (yyvsp[(3) - (3)].attr)->id);
				  icg=replicate(s1);

				  sprintf( s1 , "%s%s\tlw $t0 %s\n" ,(yyvsp[(1) - (3)].attr)->code,(yyvsp[(3) - (3)].attr)->code, toAddr((yyvsp[(1) - (3)].attr)->offset) );
				  fcg=replicate(s1);
				  sprintf( s1 , "\tlw $t1 %s\n" , toAddr((yyvsp[(3) - (3)].attr)->offset) );
				  fcg=append(fcg,s1); 
				  sprintf( s1 , "\tmult $t0 $t1\n" );
				  fcg=append(fcg,s1); 
				  sprintf( s1 , "\tmflo $t2\n" );
				  fcg=append(fcg,s1); 
				  sprintf( s1 , "\tsw $t2 %s\n" , toAddr((yyval.attr)->offset) );
				  fcg=append(fcg,s1); 
				  (yyval.attr)->code=replicate(fcg);
				  (yyval.attr)->icode=replicate(icg);
				  
			}
	      }
    break;

  case 46:

/* Line 1455 of yacc.c  */
#line 1299 "parser.y"
    {
		    if(DEBUGP){
				printf("\nmultiplicative_expression -> multiplicative_expression / cast_expression\n");
			}
			error_flag=CheckBeforeMerge((yyvsp[(1) - (3)].attr),(yyvsp[(3) - (3)].attr));
			if(error_flag==1) // Incompatible in operations.
			{
				printf("\nError : Cannot divide incompatible data types.\n");
				(yyval.attr)=PassAttribute((yyvsp[(1) - (3)].attr)); //As a part of error recovery.
			}
			else
			{
				  (yyval.attr)=MergeAttributes3Code((yyvsp[(1) - (3)].attr),(yyvsp[(3) - (3)].attr));
				  (yyval.attr)->qualifier=2;

				   
				  (yyval.attr)=MergeAttributes3Code((yyvsp[(1) - (3)].attr),(yyvsp[(3) - (3)].attr));
				  (yyval.attr)->qualifier=2;
				  //--------------------------code generation ---------------------
				  (yyval.attr)->offset = size;
				  size = size + 4 ;
				  (yyval.attr)->id = (char*) malloc(10);
				  strcpy((yyval.attr)->id,getNewTemp());
				  
				  sprintf( s1 , "%s%s\t%s = %s / %s\n",(yyvsp[(1) - (3)].attr)->icode,(yyvsp[(3) - (3)].attr)->icode,(yyval.attr)->id , (yyvsp[(1) - (3)].attr)->id , (yyvsp[(3) - (3)].attr)->id);
				  icg=replicate(s1);

				  sprintf( s1 , "%s%s\tlw $t0 %s\n" ,(yyvsp[(1) - (3)].attr)->code,(yyvsp[(3) - (3)].attr)->code, toAddr((yyvsp[(1) - (3)].attr)->offset) );
				  fcg=replicate(s1);
				  sprintf( s1 , "\tlw $t1 %s\n" , toAddr((yyvsp[(3) - (3)].attr)->offset) );
				  fcg=append(fcg,s1); 
				  sprintf( s1 , "\tdiv $t0 $t1\n" );
				  fcg=append(fcg,s1); 
				  sprintf( s1 , "\tmflo $t2\n" );
				  fcg=append(fcg,s1); 
				  sprintf( s1 , "\tsw $t2 %s\n" , toAddr((yyval.attr)->offset) );
				  fcg=append(fcg,s1); 
				  (yyval.attr)->code=replicate(fcg);
				  (yyval.attr)->icode=replicate(icg);
			}
	      }
    break;

  case 47:

/* Line 1455 of yacc.c  */
#line 1341 "parser.y"
    {
		    if(DEBUGP){
				printf("\nmultiplicative_expression -> multiplicative_expression MOD cast_expression\n");
			}
			error_flag=CheckBeforeMerge((yyvsp[(1) - (3)].attr),(yyvsp[(3) - (3)].attr)) || !(((yyvsp[(3) - (3)].attr)->specifier==4||(yyvsp[(3) - (3)].attr)->specifier==5)&&((yyvsp[(1) - (3)].attr)->specifier==4||(yyvsp[(1) - (3)].attr)->specifier==5));
			if(error_flag==1) // Incompatible in operations.
			{
				printf("\nError : Cannot Take Mod incompatible data types.\n");
				(yyval.attr)=PassAttribute((yyvsp[(1) - (3)].attr)); //As a part of error recovery.
			}
			else
			{
				  (yyval.attr)=MergeAttributes3Code((yyvsp[(1) - (3)].attr),(yyvsp[(3) - (3)].attr));
				  (yyval.attr)->qualifier=2;

				  
				  (yyval.attr)=MergeAttributes3Code((yyvsp[(1) - (3)].attr),(yyvsp[(3) - (3)].attr));
				  (yyval.attr)->qualifier=2;
				  //--------------------------code generation ---------------------
				  (yyval.attr)->offset = size;
				  size = size + 4 ;
				  (yyval.attr)->id = (char*) malloc(10);
				  strcpy((yyval.attr)->id,getNewTemp());
				  
				  sprintf( s1 , "%s%s\t%s = %s mod %s\n",(yyvsp[(1) - (3)].attr)->icode,(yyvsp[(3) - (3)].attr)->icode,(yyval.attr)->id , (yyvsp[(1) - (3)].attr)->id , (yyvsp[(3) - (3)].attr)->id);
				  icg=replicate(s1);

				  sprintf( s1 , "%s%s\tlw $t0 %s\n", (yyvsp[(1) - (3)].attr)->code,(yyvsp[(3) - (3)].attr)->code, toAddr((yyvsp[(1) - (3)].attr)->offset) );
				  fcg=replicate(s1);
				  sprintf( s1 , "\tlw $t1 %s\n" , toAddr((yyvsp[(3) - (3)].attr)->offset) );
				  fcg=append(fcg,s1); 
				  sprintf( s1 , "\tdiv $t0 $t1\n" );
				  fcg=append(fcg,s1); 
				  sprintf( s1 , "\tmfhi $t2\n" );
				  fcg=append(fcg,s1); 
				  sprintf( s1 , "\tsw $t2 %s\n" , toAddr((yyval.attr)->offset) );
				  fcg=append(fcg,s1); 
				  (yyval.attr)->code=replicate(fcg);
				  (yyval.attr)->icode=replicate(icg);
			}
		   }
    break;

  case 48:

/* Line 1455 of yacc.c  */
#line 1386 "parser.y"
    {
		    if(DEBUGP){
				printf("\nadditive_expression -> multiplicative_expression\n");
			}
			(yyval.attr)=PassAttribute((yyvsp[(1) - (1)].attr));
		   }
    break;

  case 49:

/* Line 1455 of yacc.c  */
#line 1393 "parser.y"
    {
		    if(DEBUGP){
				printf("\nadditive_expression -> additive_expression '+' multiplicative_expression\n");
			}
			error_flag=CheckBeforeMerge((yyvsp[(1) - (3)].attr),(yyvsp[(3) - (3)].attr));
			if(error_flag==1) // Incompatible in operations.
			{
				printf("\nError : Cannot Add incompatible data types.\n");
				(yyval.attr)=PassAttribute((yyvsp[(1) - (3)].attr)); //As a part of error recovery.
			}
			else
			{
				  
				  (yyval.attr)=MergeAttributes3Code((yyvsp[(1) - (3)].attr),(yyvsp[(3) - (3)].attr));
				  (yyval.attr)->qualifier=2;
				  //--------------------------code generation ---------------------
				  (yyval.attr)->offset = size;
				  size = size + 4 ;
				  (yyval.attr)->id = (char*) malloc(10);
				  strcpy((yyval.attr)->id,getNewTemp());
				  
				  sprintf( s1 , "%s%s\t%s = %s + %s\n",(yyvsp[(1) - (3)].attr)->icode,(yyvsp[(3) - (3)].attr)->icode,(yyval.attr)->id , (yyvsp[(1) - (3)].attr)->id , (yyvsp[(3) - (3)].attr)->id);
				  icg=replicate(s1);

				  sprintf( s1 , "%s%s\tlw $t0 %s\n" ,(yyvsp[(1) - (3)].attr)->code,(yyvsp[(3) - (3)].attr)->code, toAddr((yyvsp[(1) - (3)].attr)->offset) );
				  fcg=replicate(s1);
				  sprintf( s1 , "\tlw $t1 %s\n" , toAddr((yyvsp[(3) - (3)].attr)->offset) );
				  fcg=append(fcg,s1); 
				  sprintf( s1 , "\tadd $t2,$t0,$t1\n" );
				  fcg=append(fcg,s1); 
				  sprintf( s1 , "\tsw $t2 %s\n" , toAddr((yyval.attr)->offset) );
				  fcg=append(fcg,s1); 
				  (yyval.attr)->code=replicate(fcg);
				  (yyval.attr)->icode=replicate(icg);
			}
			//PrintAttribute($$);
			//PrintAttribute($1);PrintAttribute($3);printf("\nerrorflag %d\n",error_flag);
		   }
    break;

  case 50:

/* Line 1455 of yacc.c  */
#line 1432 "parser.y"
    {
		    if(DEBUGP){
				printf("\nadditive_expression -> additive_expression '-' multiplicative_expression\n");
			}
			error_flag=CheckBeforeMerge((yyvsp[(1) - (3)].attr),(yyvsp[(3) - (3)].attr));
			if(error_flag==1) // Incompatible in operations.
			{
				printf("\nError : Cannot Subtract incompatible data types.\n");
				(yyval.attr)=PassAttribute((yyvsp[(1) - (3)].attr)); //As a part of error recovery.
			}
			else
			{
				  
				  (yyval.attr)=MergeAttributes3Code((yyvsp[(1) - (3)].attr),(yyvsp[(3) - (3)].attr));
				  (yyval.attr)->qualifier=2;
				    //--------------------------code generation ---------------------
				  (yyval.attr)->offset = size;
				  size = size + 4 ;
				  (yyval.attr)->id = (char*) malloc(10);
				  strcpy((yyval.attr)->id,getNewTemp());
				  
				  sprintf( s1 , "%s%s\t%s = %s - %s\n",(yyvsp[(1) - (3)].attr)->icode,(yyvsp[(3) - (3)].attr)->icode,(yyval.attr)->id , (yyvsp[(1) - (3)].attr)->id , (yyvsp[(3) - (3)].attr)->id);
				  icg=replicate(s1);
				  sprintf( s1 , "%s%s\tlw $t0 %s\n" ,(yyvsp[(1) - (3)].attr)->code,(yyvsp[(3) - (3)].attr)->code, toAddr((yyvsp[(1) - (3)].attr)->offset) );
				  fcg=replicate(s1);
				  sprintf( s1 , "\tlw $t1 %s\n" , toAddr((yyvsp[(3) - (3)].attr)->offset) );
				  fcg=append(fcg,s1);
				  sprintf( s1 , "\tsub $t2 $t0 $t1\n" );
				  fcg=append(fcg,s1);
				  sprintf( s1 , "\tsw $t2 %s\n" , toAddr((yyval.attr)->offset) );
				  fcg=append(fcg,s1);
				  (yyval.attr)->code=replicate(fcg);
				  (yyval.attr)->icode=replicate(icg);
			}
		   }
    break;

  case 51:

/* Line 1455 of yacc.c  */
#line 1471 "parser.y"
    {
		    if(DEBUGP){
				printf("\nshift_expression -> additive_expression\n");
			}
			(yyval.attr)=PassAttribute((yyvsp[(1) - (1)].attr));
		   }
    break;

  case 52:

/* Line 1455 of yacc.c  */
#line 1478 "parser.y"
    {
		    if(DEBUGP){
				printf("\nshift_expression -> shift_expression LEFT_OP additive_expression\n");
			}
			if(!((yyvsp[(1) - (3)].attr)->specifier==4 || (yyvsp[(1) - (3)].attr)->specifier==5 || ((yyvsp[(1) - (3)].attr)->specifier==2 && (yyvsp[(1) - (3)].attr)->isString==0))||!((yyvsp[(3) - (3)].attr)->specifier==4 || (yyvsp[(3) - (3)].attr)->specifier==5||((yyvsp[(3) - (3)].attr)->specifier==2 && (yyvsp[(3) - (3)].attr)->isString==0))||(yyvsp[(1) - (3)].attr)->isString==1||(yyvsp[(3) - (3)].attr)->isString==1||(yyvsp[(1) - (3)].attr)->isPointer==1||(yyvsp[(3) - (3)].attr)->isPointer==1||(yyvsp[(1) - (3)].attr)->isFunction==1||(yyvsp[(3) - (3)].attr)->isFunction==1)
			{
			      error_flag=1;
			      printf("\nError : Incompatible Types for Left Shift.\n");
			}
			(yyval.attr) = (struct Attribute*)malloc(sizeof (struct Attribute));
			(yyval.attr)=initAttr((yyval.attr));
			(yyval.attr)->specifier=(yyvsp[(1) - (3)].attr)->specifier;
			(yyval.attr)->qualifier=2;
			(yyval.attr)->storage=(yyvsp[(1) - (3)].attr)->storage;
			(yyval.attr)->type=(yyval.attr)->storage*10 + (yyval.attr)->specifier*100;
			//--------------------------code generation ---------------------
				  (yyval.attr)->offset = size;
				  size = size + 4 ;
				  (yyval.attr)->id = (char*) malloc(10);
				  strcpy((yyval.attr)->id,getNewTemp());
				  
				  sprintf( s1 , "%s%s\t%s = %s << %d\n",(yyvsp[(1) - (3)].attr)->icode,(yyvsp[(3) - (3)].attr)->icode,(yyval.attr)->id , (yyvsp[(1) - (3)].attr)->id , (int)(yyvsp[(3) - (3)].attr)->IntConstValue);
				  icg=replicate(s1);
				  sprintf( s1 , "%s%s\tlw $t0 %s\n" , (yyvsp[(1) - (3)].attr)->code,(yyvsp[(3) - (3)].attr)->code,toAddr((yyvsp[(1) - (3)].attr)->offset) );
				  fcg=replicate(s1);
				  sprintf( s1 , "\tsll $t1 $t0 %d\n", (int)(yyvsp[(3) - (3)].attr)->IntConstValue );
				  fcg=append(fcg,s1);
				  sprintf( s1 , "\tsw $t1 %s\n" , toAddr((yyval.attr)->offset) );
				  fcg=append(fcg,s1);
				  (yyval.attr)->code=replicate(fcg);
				  (yyval.attr)->icode=replicate(icg);
		   }
    break;

  case 53:

/* Line 1455 of yacc.c  */
#line 1511 "parser.y"
    {
		    if(DEBUGP){
				printf("\nshift_expression -> shift_expression RIGHT_OP additive_expression\n");
			}
			if(!((yyvsp[(1) - (3)].attr)->specifier==4 || (yyvsp[(1) - (3)].attr)->specifier==5 || ((yyvsp[(1) - (3)].attr)->specifier==2 && (yyvsp[(1) - (3)].attr)->isString==0))||!((yyvsp[(3) - (3)].attr)->specifier==4 || (yyvsp[(3) - (3)].attr)->specifier==5||((yyvsp[(3) - (3)].attr)->specifier==2 && (yyvsp[(3) - (3)].attr)->isString==0))||(yyvsp[(1) - (3)].attr)->isString==1||(yyvsp[(3) - (3)].attr)->isString==1||(yyvsp[(1) - (3)].attr)->isPointer==1||(yyvsp[(3) - (3)].attr)->isPointer==1||(yyvsp[(1) - (3)].attr)->isFunction==1||(yyvsp[(3) - (3)].attr)->isFunction==1)
			{
			      error_flag=1;
			      printf("\nError : Incompatible Types for Right Shift.\n");
			}
			(yyval.attr) = (struct Attribute*)malloc(sizeof (struct Attribute));
			(yyval.attr)=initAttr((yyval.attr));
			(yyval.attr)->specifier=(yyvsp[(1) - (3)].attr)->specifier;
			(yyval.attr)->qualifier=2;
			(yyval.attr)->storage=(yyvsp[(1) - (3)].attr)->storage;
			(yyval.attr)->type= (yyval.attr)->storage*10 + (yyval.attr)->specifier*100;
			//--------------------------code generation ---------------------
				  (yyval.attr)->offset = size;
				  size = size + 4 ;
				  (yyval.attr)->id = (char*) malloc(10);
				  strcpy((yyval.attr)->id,getNewTemp());
				  
				  
				  sprintf( s1 , "%s%s\t%s = %s >> %d\n",(yyvsp[(1) - (3)].attr)->icode,(yyvsp[(3) - (3)].attr)->icode,(yyval.attr)->id , (yyvsp[(1) - (3)].attr)->id , (int)(yyvsp[(3) - (3)].attr)->IntConstValue);
				  icg = replicate(s1);
				  sprintf( s1 , "%s%s\tlw $t0 %s\n" , (yyvsp[(1) - (3)].attr)->code,(yyvsp[(3) - (3)].attr)->code,toAddr((yyvsp[(1) - (3)].attr)->offset) );
				  fcg = replicate(s1);
				  sprintf( s1 , "\tsrl $t1 $t0 %d\n", (int)(yyvsp[(3) - (3)].attr)->IntConstValue );
				  fcg = append(fcg , s1);
				  sprintf( s1 , "\tsw $t1 %s\n" , toAddr((yyval.attr)->offset) );
				  fcg = append(fcg ,s1);
				  (yyval.attr)->code=replicate(fcg);
				  (yyval.attr)->icode=replicate(icg);
		   }
    break;

  case 54:

/* Line 1455 of yacc.c  */
#line 1548 "parser.y"
    {
		    if(DEBUGP){
				printf("\nrelational_expression -> shift_expression\n");
			}
			(yyval.attr)=PassAttribute((yyvsp[(1) - (1)].attr));
		   }
    break;

  case 55:

/* Line 1455 of yacc.c  */
#line 1555 "parser.y"
    {
		    if(DEBUGP){
				printf("\nrelational_expression -> relational_expression '<' shift_expression\n");
			}
			error_flag=CheckBeforeMerge((yyvsp[(1) - (3)].attr),(yyvsp[(3) - (3)].attr));
			if(error_flag==1) // Incompatible in operations.
			{
				printf("\nError : Incompatible data types for Comparision(<).\n");
				(yyval.attr)=PassAttribute((yyvsp[(1) - (3)].attr)); //As a part of error recovery.
			}
			else
			{
				  (yyval.attr)=MergeAttributes3Code((yyvsp[(1) - (3)].attr),(yyvsp[(3) - (3)].attr));
				  (yyval.attr)->qualifier=2;
				  //printf("\n-----------\n");PrintAttribute($1);PrintAttribute($3);printf("\n-----------\n");  
				  //--------------------------code generation ---------------------
				  (yyval.attr)->offset = size;
				  size = size + 4 ;
				  (yyval.attr)->id = (char*) malloc(10);
				  strcpy((yyval.attr)->id,getNewTemp());
				  
				  
				    icg=replicate("");
				    fcg=replicate("");
				    if((yyvsp[(1) - (3)].attr)->qualifier==3)
				    {
					  sprintf(s1,"array value at %s",(yyvsp[(1) - (3)].attr)->id);
					  icg=append(icg,s1);

					  sprintf(s1,"\tlw $t9 %s\n",toAddr((yyvsp[(1) - (3)].attr)->offset));  
					  fcg=append(fcg,s1);
					  
				    }
				    else
				    {
					  sprintf(s1,"%s",(yyvsp[(1) - (3)].attr)->id);
					  icg=append(icg,s1);

					  sprintf(s1,"\tli $t0 %d\n",(yyvsp[(1) - (3)].attr)->offset);  
					  fcg=append(fcg,s1);
					  sprintf(s1,"\tsub $t9 $sp $t0\n");  
					  fcg=append(fcg,s1);
				    }	   
				    if((yyvsp[(3) - (3)].attr)->qualifier==3)
				    {
					  sprintf(s1,"array value at %s",(yyvsp[(3) - (3)].attr)->id);
					  icg1=replicate(s1);

					  sprintf(s1,"\tlw $t8 %s\n",toAddr((yyvsp[(3) - (3)].attr)->offset));  
					  fcg=append(fcg,s1);
					  
				    }
				    else
				    {
					  sprintf(s1,"%s",(yyvsp[(3) - (3)].attr)->id);
					  icg1=replicate(s1);

					  sprintf(s1,"\tli $t0 %d\n",(yyvsp[(3) - (3)].attr)->offset);  
					  fcg=append(fcg,s1);
					  sprintf(s1,"\tsub $t8 $sp $t0\n");  
					  fcg=append(fcg,s1);
				    }
				  sprintf( s1 , "%s%s\t%s = %s < %s\n",(yyvsp[(1) - (3)].attr)->icode,(yyvsp[(3) - (3)].attr)->icode,(yyval.attr)->id , icg , icg1);
				  icg = append(icg,s1);

				  sprintf( s1 , "%s%s\tlw $t0 0($t9)\n" ,(yyvsp[(1) - (3)].attr)->code,(yyvsp[(3) - (3)].attr)->code );
				  fcg = append(fcg,s1);
				  sprintf( s1 , "\tlw $t1 0($t8)\n");
				  fcg = append (fcg , s1);
				  sprintf( s1 , "\tslt $t2 $t0 $t1\n" );
				  fcg = append (fcg ,s1);
				  sprintf( s1 , "\tsw $t2 %s\n" , toAddr((yyval.attr)->offset) );
				  fcg = append (fcg , s1);
				  (yyval.attr)->code=replicate(fcg);
				  (yyval.attr)->icode=replicate(icg);//PrintAttribute($$);
		
			}

		   }
    break;

  case 56:

/* Line 1455 of yacc.c  */
#line 1635 "parser.y"
    {
		    if(DEBUGP){
				printf("\nrelational_expression -> relational_expression '>' shift_expression\n");
			}
			error_flag=CheckBeforeMerge((yyvsp[(1) - (3)].attr),(yyvsp[(3) - (3)].attr));
			if(error_flag==1) // Incompatible in operations.
			{
				printf("\nError : Incompatible data types for Comparision(>).\n");
				(yyval.attr)=PassAttribute((yyvsp[(1) - (3)].attr)); //As a part of error recovery.
			}
			else
			{
				  (yyval.attr)=MergeAttributes3Code((yyvsp[(1) - (3)].attr),(yyvsp[(3) - (3)].attr));
				  (yyval.attr)->qualifier=2;
				    //--------------------------code generation ---------------------
				  (yyval.attr)->offset = size;
				  size = size + 4 ;
				  (yyval.attr)->id = (char*) malloc(10);
				  strcpy((yyval.attr)->id,getNewTemp());
				  
				  
				    icg=replicate("");
				    fcg=replicate("");
				    sprintf( s1 , "%s%s",(yyvsp[(1) - (3)].attr)->icode,(yyvsp[(3) - (3)].attr)->icode);
				   icg = append (icg,s1);
				    
				  sprintf( s1 , "%s",(yyvsp[(1) - (3)].attr)->code );
				  fcg = append (fcg,s1);
				  sprintf( s1 , "%s",(yyvsp[(3) - (3)].attr)->code );
				  fcg = append (fcg,s1);

				    if((yyvsp[(1) - (3)].attr)->qualifier==3)
				    {
					  sprintf(s1,"array value at %s",(yyvsp[(1) - (3)].attr)->id);
					  icg=append(icg,s1);

					  sprintf(s1,"\tlw $t9 %s\n",toAddr((yyvsp[(1) - (3)].attr)->offset));  
					  fcg=append(fcg,s1);
					  
				    }
				    else
				    {
					  sprintf(s1,"%s",(yyvsp[(1) - (3)].attr)->id);
					  icg=append(icg,s1);

					  sprintf(s1,"\tli $t0 %d\n",(yyvsp[(1) - (3)].attr)->offset);  
					  fcg=append(fcg,s1);
					  sprintf(s1,"\tsub $t9 $sp $t0\n");  
					  fcg=append(fcg,s1);
				    }	   
				    if((yyvsp[(3) - (3)].attr)->qualifier==3)
				    {
					  sprintf(s1,"array value at %s",(yyvsp[(3) - (3)].attr)->id);
					  icg1=replicate(s1);

					  sprintf(s1,"\tlw $t8 %s\n",toAddr((yyvsp[(3) - (3)].attr)->offset));  
					  fcg=append(fcg,s1);
					  
				    }
				    else
				    {
					  sprintf(s1,"%s",(yyvsp[(3) - (3)].attr)->id);
					  icg1=replicate(s1);

					  sprintf(s1,"\tli $t0 %d\n",(yyvsp[(3) - (3)].attr)->offset);  
					  fcg=append(fcg,s1);
					  sprintf(s1,"\tsub $t8 $sp $t0\n");  
					  fcg=append(fcg,s1);
				    }
				  
				  sprintf( s1 , "\t%s = %s > %s\n",(yyval.attr)->id, icg , icg1);
				   icg = append (icg,s1);
				  
				  sprintf( s1 , "\tlw $t0 0($t9)\n" );
				  fcg = append (fcg,s1);
				  sprintf( s1 , "\tlw $t1 0($t8)\n");
				  fcg = append(fcg , s1);
				  sprintf( s1 , "\tslt $t2 $t1 $t0\n" );
				  fcg = append(fcg , s1);
				  sprintf( s1 , "\tsw $t2 %s\n" , toAddr((yyval.attr)->offset) );	
				  fcg = append(fcg , s1);
				  (yyval.attr)->code=replicate(fcg);
				  (yyval.attr)->icode=replicate(icg);
		  //PrintAttribute($$);
			}//PrintAttribute($1);PrintAttribute($3);
		   }
    break;

  case 57:

/* Line 1455 of yacc.c  */
#line 1722 "parser.y"
    {
		    if(DEBUGP){
				printf("\nrelational_expression -> relational_expression LE_OP shift_expression\n");
			}
			error_flag=CheckBeforeMerge((yyvsp[(1) - (3)].attr),(yyvsp[(3) - (3)].attr));
			if(error_flag==1) // Incompatible in operations.
			{
				printf("\nError : Incompatible data types for Comparision(<=).\n");
				(yyval.attr)=PassAttribute((yyvsp[(1) - (3)].attr)); //As a part of error recovery.
			}
			else
			{
				  (yyval.attr)=MergeAttributes3Code((yyvsp[(1) - (3)].attr),(yyvsp[(3) - (3)].attr));
				  (yyval.attr)->qualifier=2;
				// --------------------------code generation ---------------------
				  (yyval.attr)->offset = size;
				  size = size + 4 ;
				  (yyval.attr)->id = (char*) malloc(10);
				  strcpy((yyval.attr)->id,getNewTemp());
				  
				  
				  sprintf( s1 , "%s%s\t%s = %s <= %s\n",(yyvsp[(1) - (3)].attr)->icode,(yyvsp[(3) - (3)].attr)->icode,(yyval.attr)->id , (yyvsp[(1) - (3)].attr)->id , (yyvsp[(3) - (3)].attr)->id);
				  icg = replicate (s1);
			      
				  sprintf( s1 , "%s%s\tlw $t0 %s\n" ,(yyvsp[(1) - (3)].attr)->code,(yyvsp[(3) - (3)].attr)->code, toAddr((yyvsp[(1) - (3)].attr)->offset) );
				  fcg = replicate (s1);
				  sprintf( s1 , "\tlw $t1 %s\n" , toAddr((yyvsp[(3) - (3)].attr)->offset) );
				  fcg = append(fcg , s1);
				  sprintf( s1 , "\tsub $t2 $t1 $t0\n" );
				  fcg = append(fcg , s1);
				  sprintf( s1 , "\tslt $t3 $t2 $0\n");
				  fcg = append(fcg , s1);
				  sprintf( s1 , "\tli $t4 1\n");
				  fcg = append(fcg , s1);
				  sprintf( s1 , "\tsub $t4 $t4 $t3\n");
				  fcg = append(fcg , s1);
				  sprintf( s1 , "\tsw $t4 %s\n" , toAddr((yyval.attr)->offset) );
				  fcg = append(fcg , s1);
				  (yyval.attr)->code=replicate(fcg);
				  (yyval.attr)->icode=replicate(icg);
			}
		   }
    break;

  case 58:

/* Line 1455 of yacc.c  */
#line 1765 "parser.y"
    {
		    if(DEBUGP){
				printf("\nrelational_expression -> relational_expression GE_OP shift_expression\n");
			}
			error_flag=CheckBeforeMerge((yyvsp[(1) - (3)].attr),(yyvsp[(3) - (3)].attr));
			if(error_flag==1) // Incompatible in operations.
			{
				printf("\nError : Incompatible data types for Comparision(>=).\n");
				(yyval.attr)=PassAttribute((yyvsp[(1) - (3)].attr)); //As a part of error recovery.
			}
			else
			{
				  (yyval.attr)=MergeAttributes3Code((yyvsp[(1) - (3)].attr),(yyvsp[(3) - (3)].attr));
				  (yyval.attr)->qualifier=2;
				    
				  //--------------------------code generation ---------------------
				  (yyval.attr)->offset = size;
				  size = size + 4 ;
				  (yyval.attr)->id = (char*) malloc(10);
				  strcpy((yyval.attr)->id,getNewTemp());
				  
  
				  
				  sprintf( s1 , "%s%s\t%s = %s >= %s\n",(yyvsp[(1) - (3)].attr)->icode,(yyvsp[(3) - (3)].attr)->icode,(yyval.attr)->id , (yyvsp[(1) - (3)].attr)->id , (yyvsp[(3) - (3)].attr)->id);
				  icg = replicate (s1);


				  sprintf( s1 , "%s%s\tlw $t0 %s\n" , (yyvsp[(1) - (3)].attr)->code,(yyvsp[(3) - (3)].attr)->code,toAddr((yyvsp[(1) - (3)].attr)->offset) );
				  fcg = replicate (s1);
				  sprintf( s1 , "\tlw $t1 %s\n" , toAddr((yyvsp[(3) - (3)].attr)->offset) );
				  fcg = append(fcg , s1);
				  sprintf( s1 , "\tsub $t2 $t0 $t1\n" );
				  fcg = append(fcg , s1);
				  sprintf( s1 , "\tslt $t3 $t2 $0\n");
				  fcg = append(fcg , s1);
				  sprintf( s1 , "\tli $t4 1\n");
				  fcg = append(fcg , s1);
				  sprintf( s1 , "\tsub $t4 $t4 $t3\n");	
				  fcg = append(fcg , s1);
				  sprintf( s1 , "\tsw $t4 %s\n" , toAddr((yyval.attr)->offset) );
				  fcg = append(fcg , s1);

				  (yyval.attr)->code=replicate(fcg);
				  (yyval.attr)->icode=replicate(icg);
		 
			}
		   }
    break;

  case 59:

/* Line 1455 of yacc.c  */
#line 1816 "parser.y"
    {
		    if(DEBUGP){
				printf("\nequality_expression -> relational_expression\n");
			}
			(yyval.attr)=PassAttribute((yyvsp[(1) - (1)].attr));
		   }
    break;

  case 60:

/* Line 1455 of yacc.c  */
#line 1823 "parser.y"
    {
		    if(DEBUGP){
				printf("\nequality_expression -> equality_expression EQ_OP relational_expression\n");
			}
			error_flag=CheckBeforeMerge((yyvsp[(1) - (3)].attr),(yyvsp[(3) - (3)].attr));
			if(error_flag==1) // Incompatible in operations.
			{
				printf("\nError : Incompatible data types for Equal Check(==).\n");
				(yyval.attr)=PassAttribute((yyvsp[(1) - (3)].attr)); //As a part of error recovery.
			}
			else
			{
				  (yyval.attr)=MergeAttributes3Code((yyvsp[(1) - (3)].attr),(yyvsp[(3) - (3)].attr));
				  (yyval.attr)->qualifier=2;

				    //--------------------------code generation ---------------------
				  (yyval.attr)->offset = size;
				  size = size + 4 ;
				  (yyval.attr)->id = (char*) malloc(10);
				  strcpy((yyval.attr)->id,getNewTemp());
				  
				  
				  sprintf( s1 , "%s%s\t%s = %s == %s\n",(yyvsp[(1) - (3)].attr)->icode,(yyvsp[(3) - (3)].attr)->icode,(yyval.attr)->id , (yyvsp[(1) - (3)].attr)->id , (yyvsp[(3) - (3)].attr)->id);
				  icg = replicate (s1);
  
				  sprintf( s1 , "%s%s\tlw $t0 %s\n" , (yyvsp[(1) - (3)].attr)->code,(yyvsp[(3) - (3)].attr)->code,toAddr((yyvsp[(1) - (3)].attr)->offset) );
				  fcg = replicate (s1);
				  sprintf( s1 , "\tlw $t1 %s\n" , toAddr((yyvsp[(3) - (3)].attr)->offset) );
				  fcg = append(fcg , s1);
				  sprintf( s1 , "\tslt $t2 $t0 $t1\n" );
				  fcg = append(fcg , s1);
				  sprintf( s1 , "\tslt $t3 $t1 $t0\n");
				  fcg = append(fcg , s1);
				  sprintf( s1 , "\tadd $t1 $t2 $t3\n");
				  fcg = append(fcg , s1);
				  sprintf( s1 , "\tli $t0 1\n");
				  fcg = append(fcg , s1);
				  sprintf( s1 , "\tsub $t0 $t0 $t1\n");
				  fcg = append(fcg , s1);
				  sprintf( s1 , "\tsw $t0 %s\n" , toAddr((yyval.attr)->offset) );
				  fcg = append(fcg , s1);
				  
				  (yyval.attr)->code=replicate(fcg);
				  (yyval.attr)->icode=replicate(icg);
			}
		   }
    break;

  case 61:

/* Line 1455 of yacc.c  */
#line 1870 "parser.y"
    {
		    if(DEBUGP){
				printf("\nequality_expression -> equality_expression NE_OP relational_expression\n");
			}
			error_flag=CheckBeforeMerge((yyvsp[(1) - (3)].attr),(yyvsp[(3) - (3)].attr));
			if(error_flag==1) // Incompatible in operations.
			{
				printf("\nError : Incompatible data types for Equal Check(!=).\n");
				(yyval.attr)=PassAttribute((yyvsp[(1) - (3)].attr)); //As a part of error recovery.
			}
			else
			{
				  (yyval.attr)=MergeAttributes3Code((yyvsp[(1) - (3)].attr),(yyvsp[(3) - (3)].attr));
				  (yyval.attr)->qualifier=2;
				
				  //--------------------------code generation ---------------------
				  (yyval.attr)->offset = size;
				  size = size + 4 ;
				  (yyval.attr)->id = (char*) malloc(10);
				  strcpy((yyval.attr)->id,getNewTemp());
				  
				  
				  sprintf( s1 , "%s%s\t%s = %s == %s\n",(yyvsp[(1) - (3)].attr)->icode,(yyvsp[(3) - (3)].attr)->icode,(yyval.attr)->id , (yyvsp[(1) - (3)].attr)->id , (yyvsp[(3) - (3)].attr)->id);
				  icg = replicate (s1);
				
				  sprintf( s1 , "%s%s\tlw $t0 %s\n" ,(yyvsp[(1) - (3)].attr)->code,(yyvsp[(3) - (3)].attr)->code, toAddr((yyvsp[(1) - (3)].attr)->offset) );
				  fcg = replicate (s1);
				  sprintf( s1 , "\tlw $t1 %s\n" , toAddr((yyvsp[(3) - (3)].attr)->offset) );
				  fcg = append(fcg , s1);
				  sprintf( s1 , "\tslt $t2 $t0 $t1\n" );
				  fcg = append(fcg , s1);
				  sprintf( s1 , "\tslt $t3 $t1 $t0\n");
				  fcg = append(fcg , s1);
				  sprintf( s1 , "\tadd $t1 $t2 $t3\n");
				  fcg = append(fcg , s1);
				  sprintf( s1 , "\tsw $t1 %s\n" , toAddr((yyval.attr)->offset) );
				  fcg = append(fcg , s1);
  
				   (yyval.attr)->code=replicate(fcg);
				  (yyval.attr)->icode=replicate(icg);
			}
		   }
    break;

  case 62:

/* Line 1455 of yacc.c  */
#line 1916 "parser.y"
    {
		    if(DEBUGP){
				printf("\nand_expression -> equality_expression\n");
			}
			(yyval.attr)=PassAttribute((yyvsp[(1) - (1)].attr));
		   }
    break;

  case 63:

/* Line 1455 of yacc.c  */
#line 1923 "parser.y"
    {
		    if(DEBUGP){
				printf("\nand_expression -> and_expression '&' equality_expression\n");
			}
			error_flag=CheckBeforeMerge((yyvsp[(1) - (3)].attr),(yyvsp[(3) - (3)].attr));
			if(error_flag==1){
				printf("\nError: Incomaptible for & operator\n");
			}
			(yyval.attr) = (struct Attribute*)malloc(sizeof (struct Attribute));
			(yyval.attr)=initAttr((yyval.attr));
			(yyval.attr)->specifier=(yyvsp[(1) - (3)].attr)->specifier;
			(yyval.attr)->qualifier=2;
			(yyval.attr)->storage=(yyvsp[(1) - (3)].attr)->storage;
			(yyval.attr)->type=(yyval.attr)->storage*10 + (yyval.attr)->specifier*100;

			//--------------------------code generation ---------------------
				  (yyval.attr)->offset = size;
				  size = size + 4 ;
				  (yyval.attr)->id = (char*) malloc(10);
				  strcpy((yyval.attr)->id,getNewTemp());
				  
				   
				  sprintf( s1 , "%s%s\t%s = %s & %s\n",(yyvsp[(1) - (3)].attr)->icode,(yyvsp[(3) - (3)].attr)->icode,(yyval.attr)->id , (yyvsp[(1) - (3)].attr)->id , (yyvsp[(3) - (3)].attr)->id);
				  icg = replicate (s1);
  
				  sprintf( s1 , "%s%s\tlw $t0 %s\n" ,(yyvsp[(1) - (3)].attr)->code,(yyvsp[(3) - (3)].attr)->code, toAddr((yyvsp[(1) - (3)].attr)->offset) );
				  fcg = replicate(s1);
				  sprintf( s1 , "\tlw $t1 %s\n" , toAddr((yyvsp[(3) - (3)].attr)->offset) );
				  fcg=append(fcg,s1);
				  sprintf( s1 , "\tand $t3 $t0 $t1\n" );
				  fcg=append(fcg,s1);
				  sprintf( s1 , "\tsw $t3 %s\n" , toAddr((yyval.attr)->offset) );
				  fcg=append(fcg,s1);
    
				  (yyval.attr)->code=replicate(fcg);
				  (yyval.attr)->icode=replicate(icg);
		
		   }
    break;

  case 64:

/* Line 1455 of yacc.c  */
#line 1964 "parser.y"
    {
		    if(DEBUGP){
				printf("\nexclusive_or_expression -> and_expression\n");
			}
			(yyval.attr)=PassAttribute((yyvsp[(1) - (1)].attr));
		   }
    break;

  case 65:

/* Line 1455 of yacc.c  */
#line 1971 "parser.y"
    {
		    if(DEBUGP){
				printf("\nexclusive_or_expression -> exclusive_or_expression '^' and_expression\n");
			}
			error_flag=CheckBeforeMerge((yyvsp[(1) - (3)].attr),(yyvsp[(3) - (3)].attr));
			if(error_flag==1){
				printf("\nError: Incomaptible for Xor ^ operator\n");
			}
			(yyval.attr) = (struct Attribute*)malloc(sizeof (struct Attribute));
			(yyval.attr)=initAttr((yyval.attr));
			(yyval.attr)->specifier=(yyvsp[(1) - (3)].attr)->specifier;
			(yyval.attr)->qualifier=2;
			(yyval.attr)->storage=(yyvsp[(1) - (3)].attr)->storage;
			(yyval.attr)->type= (yyval.attr)->storage*10 + (yyval.attr)->specifier*100;
			//--------------------------code generation ---------------------
				  (yyval.attr)->offset = size;
				  size = size + 4 ;
				  (yyval.attr)->id = (char*) malloc(10);
				  strcpy((yyval.attr)->id,getNewTemp());
				  
				  sprintf( s1 , "%s%s\t%s = %s & %s\n",(yyvsp[(1) - (3)].attr)->icode,(yyvsp[(3) - (3)].attr)->icode,(yyval.attr)->id , (yyvsp[(1) - (3)].attr)->id , (yyvsp[(3) - (3)].attr)->id);
				  icg = replicate (s1);

				  sprintf( s1 , "%s%s\tlw $t0 %s\n" , (yyvsp[(1) - (3)].attr)->code,(yyvsp[(3) - (3)].attr)->code,toAddr((yyvsp[(1) - (3)].attr)->offset) );
				  fcg = replicate(s1);
				  sprintf( s1 , "\tlw $t1 %s\n" , toAddr((yyvsp[(3) - (3)].attr)->offset) );
				  fcg=append(fcg,s1);
				  sprintf( s1 , "\txor $t3 $t0 $t1\n" );
				  fcg=append(fcg,s1);
				  sprintf( s1 , "\tsw $t3 %s\n" , toAddr((yyval.attr)->offset) );
				  fcg=append(fcg,s1);

				   (yyval.attr)->code=replicate(fcg);
				  (yyval.attr)->icode=replicate(icg);
		   }
    break;

  case 66:

/* Line 1455 of yacc.c  */
#line 2010 "parser.y"
    {
		    if(DEBUGP){
				printf("\ninclusive_or_expression -> exclusive_or_expression\n");
			}
			(yyval.attr)=PassAttribute((yyvsp[(1) - (1)].attr));
		   }
    break;

  case 67:

/* Line 1455 of yacc.c  */
#line 2017 "parser.y"
    {
		    if(DEBUGP){
				printf("\ninclusive_or_expression -> inclusive_or_expression '|' exclusive_or_expression\n");
			}
			error_flag=CheckBeforeMerge((yyvsp[(1) - (3)].attr),(yyvsp[(3) - (3)].attr));
			if(error_flag==1){
				printf("\nError: Incomaptible for | operator\n");
			}
			(yyval.attr) = (struct Attribute*)malloc(sizeof (struct Attribute));
			(yyval.attr)=initAttr((yyval.attr));
			(yyval.attr)->specifier=(yyvsp[(1) - (3)].attr)->specifier;
			(yyval.attr)->qualifier=2;
			(yyval.attr)->storage=(yyvsp[(1) - (3)].attr)->storage;
			(yyval.attr)->type= (yyval.attr)->storage*10 + (yyval.attr)->specifier*100;
  
			//--------------------------code generation ---------------------
				  (yyval.attr)->offset = size;
				  size = size + 4 ;
				  (yyval.attr)->id = (char*) malloc(10);
				  strcpy((yyval.attr)->id,getNewTemp());
				    
				  sprintf( s1 , "%s%s\t%s = %s & %s\n",(yyvsp[(1) - (3)].attr)->icode,(yyvsp[(3) - (3)].attr)->icode,(yyval.attr)->id , (yyvsp[(1) - (3)].attr)->id , (yyvsp[(3) - (3)].attr)->id);
				  icg = replicate (s1);

				  sprintf( s1 , "%s%s\tlw $t0 %s\n" , (yyvsp[(1) - (3)].attr)->code,(yyvsp[(3) - (3)].attr)->code,toAddr((yyvsp[(1) - (3)].attr)->offset) );
				  fcg = replicate(s1);
				  sprintf( s1 , "\tlw $t1 %s\n" , toAddr((yyvsp[(3) - (3)].attr)->offset) );
				  fcg=append(fcg,s1);
				  sprintf( s1 , "\tor $t3 $t0 $t1\n" );
				  fcg=append(fcg,s1);
				  sprintf( s1 , "\tsw $t3 %s\n" , toAddr((yyval.attr)->offset) );
				  fcg=append(fcg,s1);
		 
				   (yyval.attr)->code=replicate(fcg);
				  (yyval.attr)->icode=replicate(icg);
		   }
    break;

  case 68:

/* Line 1455 of yacc.c  */
#line 2057 "parser.y"
    {
		    if(DEBUGP){
				printf("\nlogical_and_expression -> inclusive_or_expression\n");
			}
			(yyval.attr)=PassAttribute((yyvsp[(1) - (1)].attr));
		   }
    break;

  case 69:

/* Line 1455 of yacc.c  */
#line 2064 "parser.y"
    {
		    if(DEBUGP){
				printf("\nlogical_and_expression -> logical_and_expression AND_OP inclusive_or_expression\n");
			}
			error_flag=CheckBeforeMerge((yyvsp[(1) - (3)].attr),(yyvsp[(3) - (3)].attr));
			if(error_flag==1){
				printf("\nError: Incomaptible for Logical And && operator\n");
				(yyval.attr)=PassAttribute((yyvsp[(1) - (3)].attr));
			}
			else
			{    (yyval.attr) = (struct Attribute*)malloc(sizeof (struct Attribute));
			    (yyval.attr)=initAttr((yyval.attr));
			    (yyval.attr)->specifier=(yyvsp[(1) - (3)].attr)->specifier;
			    (yyval.attr)->qualifier=2;
			    (yyval.attr)->storage=(yyvsp[(1) - (3)].attr)->storage;
			    (yyval.attr)->type= (yyval.attr)->storage*10 + (yyval.attr)->specifier*100;
		
			    //-------------------------code generation ---------------------
				      (yyval.attr)->offset = size;
				      size = size + 4 ;
				      (yyval.attr)->id = (char*) malloc(10);
				      strcpy((yyval.attr)->id,getNewTemp());
				      
				      sprintf( s1 , "%s%s\t%s = %s == %s\n",(yyvsp[(1) - (3)].attr)->icode,(yyvsp[(3) - (3)].attr)->icode,(yyval.attr)->id , (yyvsp[(1) - (3)].attr)->id , (yyvsp[(3) - (3)].attr)->id);
				      icg = replicate (s1);

				      sprintf( s1 , "%s%s\tlw $t0 %s\n" ,(yyvsp[(1) - (3)].attr)->code,(yyvsp[(3) - (3)].attr)->code, toAddr((yyvsp[(1) - (3)].attr)->offset) );
				      fcg = replicate(s1);
				      sprintf( s1 , "\tlw $t1 %s\n" , toAddr((yyvsp[(3) - (3)].attr)->offset) );
				      fcg=append(fcg,s1);
				      sprintf( s1 , "\tslt $t2 $t0 $0\n" );
				      fcg=append(fcg,s1);
				      sprintf( s1 , "\tslt $t3 $0 $t0\n");
				      fcg=append(fcg,s1);
				      sprintf( s1 , "\tadd $t4 $t2 $t3\n");
				      fcg=append(fcg,s1);
				      sprintf( s1 , "\tslt $t2 $t1 $0\n" );
				      fcg=append(fcg,s1);
				      sprintf( s1 , "\tslt $t3 $0 $t1\n");
				      fcg=append(fcg,s1);
				      sprintf( s1 , "\tadd $t5 $t2 $t3\n");
				      fcg=append(fcg,s1);
				      sprintf( s1 , "\tand $t0 $t5 $t4\n");
				      fcg=append(fcg,s1);  
				      sprintf( s1 , "\tsw $t0 %s\n" , toAddr((yyval.attr)->offset) );
				      fcg=append(fcg,s1);

				      (yyval.attr)->code=replicate(fcg);
				      (yyval.attr)->icode=replicate(icg);
			  }
		   }
    break;

  case 70:

/* Line 1455 of yacc.c  */
#line 2118 "parser.y"
    {
		    if(DEBUGP){
				printf("\nlogical_or_expression -> logical_and_expression\n");
			}
			(yyval.attr)=PassAttribute((yyvsp[(1) - (1)].attr));
		   }
    break;

  case 71:

/* Line 1455 of yacc.c  */
#line 2125 "parser.y"
    {
		    if(DEBUGP){
				printf("\nlogical_or_expression -> logical_or_expression OR_OP logical_and_expression\n");
			}
			error_flag=CheckBeforeMerge((yyvsp[(1) - (3)].attr),(yyvsp[(3) - (3)].attr));
			if(error_flag==1){
				printf("\nError: Incomaptible for Logical And && operator\n");
			}
			(yyval.attr) = (struct Attribute*)malloc(sizeof (struct Attribute));
			(yyval.attr)=initAttr((yyval.attr));
			(yyval.attr)->specifier=(yyvsp[(1) - (3)].attr)->specifier;
			(yyval.attr)->qualifier=2;
			(yyval.attr)->storage=(yyvsp[(1) - (3)].attr)->storage;
			(yyval.attr)->type= (yyval.attr)->storage*10 + (yyval.attr)->specifier*100;
  
			//--------------------------code generation ---------------------
				  (yyval.attr)->offset = size;
				  size = size + 4 ;
				  (yyval.attr)->id = (char*) malloc(10);
				  strcpy((yyval.attr)->id,getNewTemp());
				  
				  sprintf( s1 , "%s%s\t%s = %s == %s\n",(yyvsp[(1) - (3)].attr)->icode,(yyvsp[(3) - (3)].attr)->icode,(yyval.attr)->id , (yyvsp[(1) - (3)].attr)->id , (yyvsp[(3) - (3)].attr)->id);
				  icg = replicate (s1);

				  sprintf( s1 , "%s%s\tlw $t0 %s\n" , (yyvsp[(1) - (3)].attr)->code,(yyvsp[(3) - (3)].attr)->code,toAddr((yyvsp[(1) - (3)].attr)->offset) );
				  fcg = replicate(s1);
				  sprintf( s1 , "\tlw $t1 %s\n" , toAddr((yyvsp[(3) - (3)].attr)->offset) );
				  fcg=append(fcg,s1);
				  sprintf( s1 , "\tslt $t2 $t0 $0\n" );
				  fcg=append(fcg,s1);
				  sprintf( s1 , "\tslt $t3 $0 $t0\n");
				  fcg=append(fcg,s1);
				  sprintf( s1 , "\tadd $t4 $t2 $t3\n");
				  fcg=append(fcg,s1);
				  sprintf( s1 , "\tslt $t2 $t1 $0\n" );
				  fcg=append(fcg,s1);
				  sprintf( s1 , "\tslt $t3 $0 $t1\n");
				  fcg=append(fcg,s1);
				  sprintf( s1 , "\tadd $t5 $t2 $t3\n");
				  fcg=append(fcg,s1);
				  sprintf( s1 , "\tor $t0 $t5 $t4\n");
				  fcg=append(fcg,s1);
				  sprintf( s1 , "\tsw $t0 %s\n" , toAddr((yyval.attr)->offset) );
				  fcg=append(fcg,s1);
				  
				   (yyval.attr)->code=replicate(fcg);
				  (yyval.attr)->icode=replicate(icg);
		   }
    break;

  case 72:

/* Line 1455 of yacc.c  */
#line 2177 "parser.y"
    {
		    if(DEBUGP){
				printf("\nconditional_expression -> logical_or_expression\n");
			}
			(yyval.attr)=PassAttribute((yyvsp[(1) - (1)].attr));
		   }
    break;

  case 73:

/* Line 1455 of yacc.c  */
#line 2184 "parser.y"
    {
		    if(DEBUGP){
				printf("\nconditional_expression -> logical_or_expression '?' expression ':' conditional_expression\n");
			}
			error_flag=CheckBeforeMerge((yyvsp[(1) - (5)].attr),(yyvsp[(1) - (5)].attr))||CheckBeforeMerge((yyvsp[(3) - (5)].attr),(yyvsp[(5) - (5)].attr));
			if(error_flag==1){
				printf("\nError: Incomaptible for Logical And && operator\n");
			}
			(yyval.attr)=PassAttribute((yyvsp[(3) - (5)].attr));	//For now daal diya hai dekhna padega...probably values(IntConstValue etc) change karni padegi...
			(yyval.attr)->qualifier=2;
		   }
    break;

  case 74:

/* Line 1455 of yacc.c  */
#line 2199 "parser.y"
    {
		    if(DEBUGP){
				printf("\nassignment_expression -> conditional_expression\n");
			}
			(yyval.attr)=PassAttribute((yyvsp[(1) - (1)].attr));  //PrintAttribute($$);
		   }
    break;

  case 75:

/* Line 1455 of yacc.c  */
#line 2206 "parser.y"
    {
		    if(DEBUGP){
				printf("\nassignment_expression -> unary_expression assignment_operator assignment_expression \n");
			}			
			(yyval.attr)=PassAttribute((yyvsp[(1) - (3)].attr));				      
			if((yyvsp[(1) - (3)].attr)->qualifier>0 &&(yyvsp[(1) - (3)].attr)->qualifier!=3)	//qualifier is 1 for a constant number and 2 for 3 code. In either case left side nahi ho sakta.
			{
			      error_flag=1;
			      printf("\nError : Invalid Assignment. Left side should have Lvalue\n");
			}
			else if((yyvsp[(1) - (3)].attr)->isFunction==1)
			{
			      error_flag=1;
			      printf("\nError : Function is defined like a variable.\n");
			}
			else if((yyvsp[(1) - (3)].attr)->isArray==0)
			{
			     
			     if((yyvsp[(3) - (3)].attr)->numParameters>0)
			      {
				    error_flag=1;
				    printf("\nError : Assigning a List to Variable.\n");//PrintAttribute($3);
			      }

			     else if((yyvsp[(1) - (3)].attr)->isPointer==1)
			      {
				    if(!((((yyvsp[(3) - (3)].attr)->type==200 && (yyvsp[(3) - (3)].attr)->isString!=1)||(yyvsp[(3) - (3)].attr)->type==400||((yyvsp[(3) - (3)].attr)->type==500&&(yyvsp[(3) - (3)].attr)->isPointer==0))\
				    ||((yyvsp[(3) - (3)].attr)->type==(yyvsp[(1) - (3)].attr)->type && (yyvsp[(3) - (3)].attr)->isPointer==1)||((yyvsp[(1) - (3)].attr)->specifier==2 && (yyvsp[(3) - (3)].attr)->isString==1)))
				    {
					   error_flag=1;
					   printf("\nError : Invalid Assignment to Pointer.\n");
				     }		
				    else
				    {
					  (yyval.attr)->icode=replicate((yyvsp[(3) - (3)].attr)->icode);
					  (yyval.attr)->code=replicate((yyvsp[(3) - (3)].attr)->code);
					  sprintf(s1,"\tpointer value at %s = %s\n",(yyvsp[(1) - (3)].attr)->id,(yyvsp[(3) - (3)].attr)->id);
					  (yyval.attr)->icode=append((yyval.attr)->icode,s1);

					  sprintf(s1,"\tlw $t0 %s\n",toAddr((yyvsp[(3) - (3)].attr)->offset));
					  (yyval.attr)->code=append((yyval.attr)->code,s1);

					  sprintf(s1,"\tsw $t0 %s\n",toAddr((yyvsp[(1) - (3)].attr)->offset));
					  (yyval.attr)->code=append((yyval.attr)->code,s1);
				    }
			      }
			      else
			      {
				    //$1 is not an array, pointer, function so can be int,long,double,float,char
				    if((yyvsp[(3) - (3)].attr)->isFunction==1||(yyvsp[(3) - (3)].attr)->isArray==1||(yyvsp[(3) - (3)].attr)->isPointer==1||(yyvsp[(3) - (3)].attr)->isString==1)
				    {
					error_flag=1;
					printf("\nError : Invalid Assignment Method to the variable.\n");
				    }
				  
				    //------------code generation-------------//
				     
//PrintAttribute($1);			f
				    fcg=replicate((yyvsp[(1) - (3)].attr)->code);icg=replicate((yyvsp[(1) - (3)].attr)->icode);
				    if((yyvsp[(1) - (3)].attr)->qualifier==3)
				    {
					  sprintf(s1,"array value at %s",(yyvsp[(1) - (3)].attr)->id);
					  icg=append(icg,s1);

					  sprintf(s1,"\tlw $t9 %s\n",toAddr((yyvsp[(1) - (3)].attr)->offset));  
					  fcg=append(fcg,s1);
					  
				    }
				    else
				    {
					  sprintf(s1,"%s",(yyvsp[(1) - (3)].attr)->id);
					  icg=append(icg,s1);

					  sprintf(s1,"\tli $t0 %d\n",(yyvsp[(1) - (3)].attr)->offset);  
					  fcg=append(fcg,s1);
					  sprintf(s1,"\tsub $t9 $sp $t0\n");  
					  fcg=append(fcg,s1);
				    }
				    if((yyvsp[(2) - (3)].charValue) == '=' )
				    {
					  sprintf( s1 , "%s\t%s = %s\n" ,(yyvsp[(3) - (3)].attr)->icode, icg , (yyvsp[(3) - (3)].attr)->id );						
					  icg=append(icg,s1);

					  sprintf( s1 , "%s",(yyvsp[(3) - (3)].attr)->code);
					  fcg=append(fcg,s1);
					  sprintf( s1 , "\tlw $t0 %s\n" , toAddr((yyvsp[(3) - (3)].attr)->offset) );
					  fcg=append(fcg,s1);
					  sprintf( s1 , "\tsw $t0 0($t9)\n");
					  fcg=append(fcg,s1);
					  (yyval.attr)->code=replicate(fcg);
					  (yyval.attr)->icode=replicate(icg);
					  //PrintAttribute($$);
				    }
				    if((yyvsp[(2) - (3)].charValue) == '+' )
				    {
					  sprintf( s1 , "%s\t%s += %s\n" ,(yyvsp[(3) - (3)].attr)->icode, icg , (yyvsp[(3) - (3)].attr)->id );						
					  icg=replicate(s1);

					  sprintf( s1 , "%s",(yyvsp[(3) - (3)].attr)->code);
					  fcg=replicate(s1);
					  sprintf( s1 , "\tlw $t0 %s\n" , toAddr((yyvsp[(3) - (3)].attr)->offset) );
					  fcg=append(fcg,s1);
					  sprintf( s1 , "\tlw $t1 %s\n" , toAddr((yyvsp[(1) - (3)].attr)->offset) );
					  fcg=append(fcg,s1);
					  sprintf( s1 , "\tadd $t1 $t1 $t0\n");
					  fcg=append(fcg,s1);
					  sprintf( s1 , "\tsw $t1 0($t9)\n");
					  fcg=append(fcg,s1);
					  (yyval.attr)->code=replicate(fcg);
					  (yyval.attr)->icode=replicate(icg);
					  //PrintAttribute($$);
				    }
				    if((yyvsp[(2) - (3)].charValue) == '-' )
				    {
					  sprintf( s1 , "%s\t%s -= %s\n" ,(yyvsp[(3) - (3)].attr)->icode, icg, (yyvsp[(3) - (3)].attr)->id );						
					  icg=replicate(s1);

					  sprintf( s1 , "%s",(yyvsp[(3) - (3)].attr)->code);
					  fcg=replicate(s1);
					  sprintf( s1 , "\tlw $t0 %s\n" , toAddr((yyvsp[(3) - (3)].attr)->offset) );
					  fcg=append(fcg,s1);
					  sprintf( s1 , "\tlw $t1 %s\n" , toAddr((yyvsp[(1) - (3)].attr)->offset) );
					  fcg=append(fcg,s1);
					  sprintf( s1 , "\tsub $t1 $t1 $t0\n");
					  fcg=append(fcg,s1);
					  sprintf( s1 , "\tsw $t1 0($t9)\n");
					  fcg=append(fcg,s1);
					  (yyval.attr)->code=replicate(fcg);
					  (yyval.attr)->icode=replicate(icg);
					  //PrintAttribute($$);
				    }
				    if((yyvsp[(2) - (3)].charValue) == '<' )
				    {
					  
					  sprintf( s1 , "%s\t%s <<= %d\n" ,(yyvsp[(3) - (3)].attr)->icode, icg , (int)(yyvsp[(3) - (3)].attr)->IntConstValue );						
					  icg=replicate(s1);

					  sprintf( s1 , "%s",(yyvsp[(3) - (3)].attr)->code);
					  fcg=replicate(s1);
					  sprintf( s1 , "\tlw $t1 %s\n" , toAddr((yyvsp[(1) - (3)].attr)->offset) );
					  fcg=append(fcg,s1);
					  sprintf( s1 , "\tsll $t1 $t1 %d\n", (int)(yyvsp[(3) - (3)].attr)->IntConstValue );
					  fcg=append(fcg,s1);
					  sprintf( s1 , "\tsw $t1 0($t9)\n");
					  fcg=append(fcg,s1);
					  (yyval.attr)->code=replicate(fcg);
					  (yyval.attr)->icode=replicate(icg);
					  //PrintAttribute($$);
				    }
				    if((yyvsp[(2) - (3)].charValue) == '>' )
				    {
					  
					  sprintf( s1 , "%s\t%s >>= %d\n" ,(yyvsp[(3) - (3)].attr)->icode, icg , (int)(yyvsp[(3) - (3)].attr)->IntConstValue );						
					  icg=replicate(s1);

					  sprintf( s1 , "%s",(yyvsp[(3) - (3)].attr)->code);
					  fcg=replicate(s1);
					  sprintf( s1 , "\tlw $t1 %s\n" , toAddr((yyvsp[(1) - (3)].attr)->offset) );
					  fcg=append(fcg,s1);
					  sprintf( s1 , "\tsrl $t1 $t1 %d\n", (int)(yyvsp[(3) - (3)].attr)->IntConstValue );
					  fcg=append(fcg,s1);
					  sprintf( s1 , "\tsw $t1 0($t9)\n");
					  fcg=append(fcg,s1);
					  (yyval.attr)->code=replicate(fcg);
					  (yyval.attr)->icode=replicate(icg);
					  //PrintAttribute($$);
				    }
				    if((yyvsp[(2) - (3)].charValue) == '&' )
				    {
					  sprintf( s1 , "%s\t%s &= %s\n" ,(yyvsp[(3) - (3)].attr)->icode, icg , (yyvsp[(3) - (3)].attr)->id );						
					  icg=replicate(s1);

					  sprintf( s1 , "%s",(yyvsp[(3) - (3)].attr)->code);
					  fcg=replicate(s1);
					  sprintf( s1 , "\tlw $t0 %s\n" , toAddr((yyvsp[(3) - (3)].attr)->offset) );
					  fcg=append(fcg,s1);
					  sprintf( s1 , "\tlw $t1 %s\n" , toAddr((yyvsp[(1) - (3)].attr)->offset) );
					  fcg=append(fcg,s1);
					  sprintf( s1 , "\tand $t1 $t1 $t0\n");
					  fcg=append(fcg,s1);
					  sprintf( s1 , "\tsw $t1 0($t9)\n");
					  fcg=append(fcg,s1);
					  (yyval.attr)->code=replicate(fcg);
					  (yyval.attr)->icode=replicate(icg);
					  //PrintAttribute($$);
				    }
				    if((yyvsp[(2) - (3)].charValue) == '|' )
				    {
					  sprintf( s1 , "%s\t%s |= %s\n" ,(yyvsp[(3) - (3)].attr)->icode, icg , (yyvsp[(3) - (3)].attr)->id );						
					  icg=replicate(s1);

					  sprintf( s1 , "%s",(yyvsp[(3) - (3)].attr)->code);
					  fcg=replicate(s1);
					  sprintf( s1 , "\tlw $t0 %s\n" , toAddr((yyvsp[(3) - (3)].attr)->offset) );
					  fcg=append(fcg,s1);
					  sprintf( s1 , "\tlw $t1 %s\n" , toAddr((yyvsp[(1) - (3)].attr)->offset) );
					  fcg=append(fcg,s1);
					  sprintf( s1 , "\tor $t1 $t1 $t0\n");
					  fcg=append(fcg,s1);
					  sprintf( s1 , "\tsw $t1 0($t9)\n");
					  fcg=append(fcg,s1);
					  (yyval.attr)->code=replicate(fcg);
					  (yyval.attr)->icode=replicate(icg);
					  //PrintAttribute($$);
				    }
				    if((yyvsp[(2) - (3)].charValue) == '^' )
				    {
					  sprintf( s1 , "%s\t%s ^= %s\n" ,(yyvsp[(3) - (3)].attr)->icode, icg , (yyvsp[(3) - (3)].attr)->id );						
					  icg=replicate(s1);

					  sprintf( s1 , "%s",(yyvsp[(3) - (3)].attr)->code);
					  fcg=replicate(s1);
					  sprintf( s1 , "\tlw $t0 %s\n" , toAddr((yyvsp[(3) - (3)].attr)->offset) );
					  fcg=append(fcg,s1);
					  sprintf( s1 , "\tlw $t1 %s\n" , toAddr((yyvsp[(1) - (3)].attr)->offset) );
					  fcg=append(fcg,s1);
					  sprintf( s1 , "\txor $t1 $t1 $t0\n");
					  fcg=append(fcg,s1);
					  sprintf( s1 , "\tsw $t1 0($t9)\n");
					  fcg=append(fcg,s1);
					  (yyval.attr)->code=replicate(fcg);
					  (yyval.attr)->icode=replicate(icg);
					  //PrintAttribute($$);
				    }
				    if((yyvsp[(2) - (3)].charValue) == '*' )
				    {
					  sprintf( s1 , "%s\t%s *= %s\n" ,(yyvsp[(3) - (3)].attr)->icode, icg , (yyvsp[(3) - (3)].attr)->id );						
					  icg=replicate(s1);

					  sprintf( s1 , "%s",(yyvsp[(3) - (3)].attr)->code);
					  fcg=replicate(s1);
					  sprintf( s1 , "\tlw $t0 %s\n" , toAddr((yyvsp[(3) - (3)].attr)->offset) );
					  fcg=append(fcg,s1);
					  sprintf( s1 , "\tlw $t1 %s\n" , toAddr((yyvsp[(1) - (3)].attr)->offset) );
					  fcg=append(fcg,s1);
					  sprintf( s1 , "\tmult $t1 $t0\n");
					  fcg=append(fcg,s1);
					  sprintf( s1 , "\tmflo $t1\n");
					  fcg=append(fcg,s1);
					  sprintf( s1 , "\tsw $t1 0($t9)\n");
					  fcg=append(fcg,s1);
					  (yyval.attr)->code=replicate(fcg);
					  (yyval.attr)->icode=replicate(icg);
					  //PrintAttribute($$);
				    }
				    if((yyvsp[(2) - (3)].charValue) == '/' )
				    {
					  sprintf( s1 , "%s\t%s /= %s\n" ,(yyvsp[(3) - (3)].attr)->icode, icg , (yyvsp[(3) - (3)].attr)->id );						
					  icg=replicate(s1);

					  sprintf( s1 , "%s",(yyvsp[(3) - (3)].attr)->code);
					  fcg=replicate(s1);
					  sprintf( s1 , "\tlw $t0 %s\n" , toAddr((yyvsp[(3) - (3)].attr)->offset) );
					  fcg=append(fcg,s1);
					  sprintf( s1 , "\tlw $t1 %s\n" , toAddr((yyvsp[(1) - (3)].attr)->offset) );
					  fcg=append(fcg,s1);
					  sprintf( s1 , "\tdiv $t1 $t0\n");
					  fcg=append(fcg,s1);
					  sprintf( s1 , "\tmflo $t1\n");
					  fcg=append(fcg,s1);
					  sprintf( s1 , "\tsw $t1 0($t9)\n");
					  fcg=append(fcg,s1);
					  (yyval.attr)->code=replicate(fcg);
					  (yyval.attr)->icode=replicate(icg);
					  //PrintAttribute($$);
				    }
				    if((yyvsp[(2) - (3)].charValue) == '%' )
				    {
					  sprintf( s1 , "%s\t%s mod= %s\n" ,(yyvsp[(3) - (3)].attr)->icode, icg , (yyvsp[(3) - (3)].attr)->id );						
					  icg=replicate(s1);

					  sprintf( s1 , "%s",(yyvsp[(3) - (3)].attr)->code);
					  fcg=replicate(s1);
					  sprintf( s1 , "\tlw $t0 %s\n" , toAddr((yyvsp[(3) - (3)].attr)->offset) );
					  fcg=append(fcg,s1);
					  sprintf( s1 , "\tlw $t1 %s\n" , toAddr((yyvsp[(1) - (3)].attr)->offset) );
					  fcg=append(fcg,s1);
					  sprintf( s1 , "\tdiv $t1 $t0\n");
					  fcg=append(fcg,s1);
					  sprintf( s1 , "\tmfhi $t1\n");
					  fcg=append(fcg,s1);
					  sprintf( s1 , "\tsw $t1 0($t9)\n");
					  fcg=append(fcg,s1);
					  (yyval.attr)->code=replicate(fcg);
					  (yyval.attr)->icode=replicate(icg);
					  //PrintAttribute($$);
				    }
				    //PrintAttribute($$);

			      }
			 }
			 else	//Can be an array only
			  {
			      error_flag=1;
			      printf("\nError : Cannot perform assignment to array like a variable.\n");				
			  }
			  assign_flag=0;
			  //PrintAttribute($$);
		   }
    break;

  case 76:

/* Line 1455 of yacc.c  */
#line 2510 "parser.y"
    {
		  assign_flag=1;
	  }
    break;

  case 77:

/* Line 1455 of yacc.c  */
#line 2516 "parser.y"
    {
		    if(DEBUGP){
				printf("\nassignment_operator found\n");
			}
			(yyval.charValue)='=';
		   }
    break;

  case 78:

/* Line 1455 of yacc.c  */
#line 2523 "parser.y"
    {
		    if(DEBUGP){
				printf("\nassignment_operator found\n");
			}
			(yyval.charValue)='*';
			assign_flag=1;
		   }
    break;

  case 79:

/* Line 1455 of yacc.c  */
#line 2531 "parser.y"
    {
		    if(DEBUGP){
				printf("\nassignment_operator found\n");
			}
			(yyval.charValue)='/';
			assign_flag=1;
		   }
    break;

  case 80:

/* Line 1455 of yacc.c  */
#line 2539 "parser.y"
    {
		    if(DEBUGP){
				printf("\nassignment_operator found\n");
			}
			(yyval.charValue)='%';
			assign_flag=1;
		   }
    break;

  case 81:

/* Line 1455 of yacc.c  */
#line 2547 "parser.y"
    {
		    if(DEBUGP){
				printf("\nassignment_operator found\n");
			}
			(yyval.charValue)='+';
			assign_flag=1;
		   }
    break;

  case 82:

/* Line 1455 of yacc.c  */
#line 2555 "parser.y"
    {
		    if(DEBUGP){
				printf("\nassignment_operator found\n");
			}
			(yyval.charValue)='-';
			assign_flag=1;
		   }
    break;

  case 83:

/* Line 1455 of yacc.c  */
#line 2563 "parser.y"
    {
		    if(DEBUGP){
				printf("\nassignment_operator found\n");
			}
			(yyval.charValue)='<';
			assign_flag=1;
		   }
    break;

  case 84:

/* Line 1455 of yacc.c  */
#line 2571 "parser.y"
    {
		    if(DEBUGP){
				printf("\nassignment_operator found\n");
			}
			(yyval.charValue)='>';
			assign_flag=1;
		   }
    break;

  case 85:

/* Line 1455 of yacc.c  */
#line 2579 "parser.y"
    {
		    if(DEBUGP){
				printf("\nassignment_operator found\n");
			}
			(yyval.charValue)='&';
			assign_flag=1;
		   }
    break;

  case 86:

/* Line 1455 of yacc.c  */
#line 2587 "parser.y"
    {
		    if(DEBUGP){
				printf("\nassignment_operator found\n");
			}
			(yyval.charValue)='^';
			assign_flag=1;
		   }
    break;

  case 87:

/* Line 1455 of yacc.c  */
#line 2595 "parser.y"
    {
		    if(DEBUGP){
				printf("\nassignment_operator found\n");
			}
			(yyval.charValue)='|';
			assign_flag=1;
		   }
    break;

  case 88:

/* Line 1455 of yacc.c  */
#line 2606 "parser.y"
    {
		    if(DEBUGP){
				printf("\nexpression -> assignment_expression\n");
			}
			(yyval.attr)=PassAttribute((yyvsp[(1) - (1)].attr));
			if(switch_flag==0)
			{
			    temp_expression=PassAttribute((yyval.attr));
			}
			//PrintAttribute($$);
		   }
    break;

  case 89:

/* Line 1455 of yacc.c  */
#line 2618 "parser.y"
    {
		    if(DEBUGP){
				printf("\nexpression -> expression ',' assignment_expression\n");
			}		
			(yyval.attr)=PassAttribute((yyvsp[(1) - (3)].attr));
			(yyval.attr)->code=append((yyval.attr)->code,(yyvsp[(3) - (3)].attr)->code);
			(yyval.attr)->icode=append((yyval.attr)->icode,(yyvsp[(3) - (3)].attr)->icode);
			(yyval.attr)->id=NULL;
		   }
    break;

  case 90:

/* Line 1455 of yacc.c  */
#line 2631 "parser.y"
    {
		    if(DEBUGP){
				printf("\nconstant_expression -> conditional_expression\n");
			}		
			(yyval.attr)=PassAttribute((yyvsp[(1) - (1)].attr));
		   }
    break;

  case 91:

/* Line 1455 of yacc.c  */
#line 2641 "parser.y"
    {
		    if(DEBUGP){
				printf("\ndeclaration -> declaration_specifiers ';' \n");
			}
			declaration_flag=0;
			(yyval.attr)=(struct Attribute*)malloc(sizeof (struct Attribute));
			(yyval.attr)=initAttr((yyval.attr));
			(yyval.attr)->specifier=1;
			(yyval.attr)->type=100;      
			(yyval.attr)->code=(char *)malloc(sizeof(char)*2);
			(yyval.attr)->icode=(char *)malloc(sizeof(char)*2);
			strcpy((yyval.attr)->code,"");
			strcpy((yyval.attr)->icode,"");
			assign_flag=0;
			
			//printf("\n Value of temp_inherited-----");
			//PrintAttribute(temp_inherited);
			temp_inherited=initAttr( temp_inherited) ;		
			temp_Parameters=initAttr( temp_Parameters) ;		
			
			//printf("\n new Value of temp_inherited -----");
			//PrintAttribute(temp_inherited);				
		    }
    break;

  case 92:

/* Line 1455 of yacc.c  */
#line 2664 "parser.y"
    { 
			if(DEBUGP){
				printf("\ndeclaration -> declaration_specifiers error \n");
			      }
			    declaration_flag=0;
			    (yyval.attr)=(struct Attribute*)malloc(sizeof (struct Attribute));

			    (yyval.attr)=initAttr((yyval.attr));	
			    (yyval.attr)->code=(char *)malloc(sizeof(char)*2);
			    (yyval.attr)->icode=(char *)malloc(sizeof(char)*2);
			    strcpy((yyval.attr)->code,"");
			    strcpy((yyval.attr)->icode,"");
			    //printf("\n Value of temp_inherited-----");
			    //PrintAttribute(temp_inherited);
			    temp_inherited=initAttr( temp_inherited) ;		
			    temp_Parameters=initAttr( temp_Parameters) ;		
			    //printf("\n Value of temp_inherited-----");
			    //PrintAttribute(temp_inherited);				
			    (yyval.attr)->specifier=1;
			    (yyval.attr)->type=100;
			    error_flag=1;
			    printf("\nError : semicolon missing\n ") ; 
		    }
    break;

  case 93:

/* Line 1455 of yacc.c  */
#line 2688 "parser.y"
    {
			if(DEBUGP){
				printf("\ndeclaration -> declaration_specifiers init_declarator_list ';'\n");
			}
			declaration_flag=0;
			(yyval.attr)=(struct Attribute*)malloc(sizeof (struct Attribute));
			(yyval.attr)=initAttr((yyval.attr));
			(yyval.attr)->specifier=1;
			(yyval.attr)->type=100;
			//printf("\n Value of temp_inherited-----");
			//PrintAttribute(temp_inherited);
			temp_inherited=initAttr( temp_inherited) ;
			temp_Parameters=initAttr( temp_Parameters) ;		
			(yyval.attr)->code=(char *)malloc(sizeof(char)*strlen((yyvsp[(2) - (3)].attr)->code)+1);
			(yyval.attr)->icode=(char *)malloc(sizeof(char)*strlen((yyvsp[(2) - (3)].attr)->icode)+1);
			strcpy((yyval.attr)->code,(yyvsp[(2) - (3)].attr)->code);
			strcpy((yyval.attr)->icode,(yyvsp[(2) - (3)].attr)->icode);
			assign_flag=0;
			//PrintAttribute($$);
			//printf("\n Value of temp_inherited-----");
			//PrintAttribute(temp_inherited);				
		    }
    break;

  case 94:

/* Line 1455 of yacc.c  */
#line 2711 "parser.y"
    { 
			if(DEBUGP){
				printf("\ndeclaration -> declaration_specifiers init_declarator_list error\n");
			}
			declaration_flag=0;
			(yyval.attr)=(struct Attribute*)malloc(sizeof (struct Attribute));
			(yyval.attr)=initAttr((yyval.attr));
			(yyval.attr)->specifier=1;
			(yyval.attr)->type=100;
			assign_flag=0;
			//printf("\n Value of temp_inherited-----");
			//PrintAttribute(temp_inherited);
			temp_inherited=initAttr( temp_inherited) ;
			temp_Parameters=initAttr( temp_Parameters) ;		
			(yyval.attr)->code=(char *)malloc(sizeof(char)*strlen((yyvsp[(2) - (3)].attr)->code)+1);
			(yyval.attr)->icode=(char *)malloc(sizeof(char)*strlen((yyvsp[(2) - (3)].attr)->icode)+1);
			strcpy((yyval.attr)->code,(yyvsp[(2) - (3)].attr)->code);
			strcpy((yyval.attr)->icode,(yyvsp[(2) - (3)].attr)->icode);	
			//printf("\n Value of temp_inherited-----");
			//PrintAttribute(temp_inherited);
			error_flag=1;
			printf("\nError : semicolon missing \n") ; 
		    }
    break;

  case 95:

/* Line 1455 of yacc.c  */
#line 2738 "parser.y"
    {
		    if(DEBUGP){
				printf("\ndeclaration_specifiers -> type_qualifier\n");
			}
		    if(parameter_flag==0)
			  declaration_flag=1;
		    error_flag=1;
		    printf("\nError : This C finctionality is not supported\n");
		    (yyval.attr)=PassAttribute((yyvsp[(1) - (1)].attr));
		   }
    break;

  case 96:

/* Line 1455 of yacc.c  */
#line 2749 "parser.y"
    {
		    if(DEBUGP){
				printf("\ndeclaration_specifiers -> type_specifier\n");
			}
		    if(parameter_flag==0)
			  declaration_flag=1;
//PrintAttribute($1);
		    (yyval.attr)=PassAttribute((yyvsp[(1) - (1)].attr));

		   }
    break;

  case 97:

/* Line 1455 of yacc.c  */
#line 2760 "parser.y"
    {
		    if(DEBUGP){
				printf("\ndeclaration_specifiers -> storage_class_specifier\n");
			}
		    declaration_flag=1;
		    (yyval.attr)=PassAttribute((yyvsp[(1) - (1)].attr));
		    error_flag=1;
		    printf("\nError : This C finctionality is not supported\n");
		   }
    break;

  case 98:

/* Line 1455 of yacc.c  */
#line 2770 "parser.y"
    {
		    if(DEBUGP){
				printf("\ndeclaration_specifiers -> type_qualifier type_specifier\n");
			}
		    declaration_flag=1;
		    (yyval.attr)=PassAttribute(temp_inherited);
		    error_flag=1;
		    printf("\nError : This C finctionality is not supported\n");
		   }
    break;

  case 99:

/* Line 1455 of yacc.c  */
#line 2780 "parser.y"
    {
		    if(DEBUGP){
				printf("\ndeclaration_specifiers -> type_specifier type_qualifier\n");
			}
		    declaration_flag=1;
		    (yyval.attr)=PassAttribute(temp_inherited);
		    error_flag=1;
		    printf("\nError : This C finctionality is not supported\n");
		   }
    break;

  case 100:

/* Line 1455 of yacc.c  */
#line 2790 "parser.y"
    {
		    if(DEBUGP){
				printf("\ndeclaration_specifiers -> type_specifier storage_class_specifier\n");
			}
		    declaration_flag=1;
		    (yyval.attr)=PassAttribute(temp_inherited);
		    error_flag=1;
		    printf("\nError : This C finctionality is not supported\n");
		   }
    break;

  case 101:

/* Line 1455 of yacc.c  */
#line 2800 "parser.y"
    {
		    if(DEBUGP){
				printf("\ndeclaration_specifiers -> storage_class_specifier type_specifier\n");
			}
		    declaration_flag=1;
		    (yyval.attr)=PassAttribute(temp_inherited);
		    error_flag=1;
		    printf("\nError : This C finctionality is not supported\n");
		   }
    break;

  case 102:

/* Line 1455 of yacc.c  */
#line 2810 "parser.y"
    {
		    if(DEBUGP){
				printf("\ndeclaration_specifiers -> storage_class_specifier type_qualifier\n");
			}
		    declaration_flag=1;
		    (yyval.attr)=PassAttribute(temp_inherited);
		    error_flag=1;
		    printf("\nError : This C finctionality is not supported\n");
		   }
    break;

  case 103:

/* Line 1455 of yacc.c  */
#line 2820 "parser.y"
    {
		    if(DEBUGP){
				printf("\ndeclaration_specifiers -> type_qualifier storage_class_specifier\n");
			}
		    declaration_flag=1;
		    (yyval.attr)=PassAttribute(temp_inherited);
		    error_flag=1;
		    printf("\nError : This C finctionality is not supported\n");
		   }
    break;

  case 104:

/* Line 1455 of yacc.c  */
#line 2830 "parser.y"
    {
		    if(DEBUGP){
				printf("\ndeclaration_specifiers -> type_qualifier type_specifier storage_class_specifier\n");
			}
		    declaration_flag=1;
		    (yyval.attr)=PassAttribute(temp_inherited);
		    error_flag=1;
		    printf("\nError : This C finctionality is not supported\n");
		   }
    break;

  case 105:

/* Line 1455 of yacc.c  */
#line 2840 "parser.y"
    {
		    if(DEBUGP){
				printf("\ndeclaration_specifiers -> type_qualifier storage_class_specifier type_specifier\n");
			}
		    declaration_flag=1;
		    (yyval.attr)=PassAttribute(temp_inherited);
		    error_flag=1;
		    printf("\nError : This C finctionality is not supported\n");
		   }
    break;

  case 106:

/* Line 1455 of yacc.c  */
#line 2850 "parser.y"
    {
		    if(DEBUGP){
				printf("\ndeclaration_specifiers -> storage_class_specifier type_specifier type_qualifier \n");
			}
		    declaration_flag=1;
		    (yyval.attr)=PassAttribute(temp_inherited);
		    error_flag=1;
		    printf("\nError : This C finctionality is not supported\n");
		   }
    break;

  case 107:

/* Line 1455 of yacc.c  */
#line 2860 "parser.y"
    {
		    if(DEBUGP){
				printf("\ndeclaration_specifiers -> storage_class_specifier type_qualifier type_specifier \n");
			}
		    declaration_flag=1;
		    (yyval.attr)=PassAttribute(temp_inherited);
		    error_flag=1;
		    printf("\nError : This C finctionality is not supported\n");
		   }
    break;

  case 108:

/* Line 1455 of yacc.c  */
#line 2870 "parser.y"
    {
		    if(DEBUGP){
				printf("\ndeclaration_specifiers -> type_specifier type_qualifier storage_class_specifier \n");
			}
		    declaration_flag=1;
		    (yyval.attr)=PassAttribute(temp_inherited);
		    error_flag=1;
		    printf("\nError : This C finctionality is not supported\n");
		   }
    break;

  case 109:

/* Line 1455 of yacc.c  */
#line 2880 "parser.y"
    {
		    if(DEBUGP){
				printf("\ndeclaration_specifiers -> type_specifier storage_class_specifier type_qualifier \n");
			}
		    declaration_flag=1;
		    (yyval.attr)=PassAttribute(temp_inherited);
		    error_flag=1;
		    printf("\nError : This C finctionality is not supported\n");
		   }
    break;

  case 110:

/* Line 1455 of yacc.c  */
#line 2893 "parser.y"
    {
		    if(DEBUGP){
				printf("\ninit_declarator_list -> init_declarator \n");
			}
			(yyval.attr)=PassAttribute((yyvsp[(1) - (1)].attr));			
		   }
    break;

  case 111:

/* Line 1455 of yacc.c  */
#line 2900 "parser.y"
    {
		    if(DEBUGP){
				printf("\ninit_declarator_list ->  init_declarator_list ',' init_declarator\n");
			}
			(yyval.attr)=PassAttribute((yyvsp[(1) - (3)].attr));
			(yyval.attr)->code=append((yyval.attr)->code,(yyvsp[(3) - (3)].attr)->code);
			(yyval.attr)->icode=append((yyval.attr)->icode,(yyvsp[(3) - (3)].attr)->icode);
		   }
    break;

  case 112:

/* Line 1455 of yacc.c  */
#line 2912 "parser.y"
    {
		    if(DEBUGP){
				printf("\ninit_declarator ->declarator equal_to initializer\n");
			}
			/*printf("\n============================\n");
			  PrintAttribute($1);printf("\n===================================\n");PrintAttribute($3);*/
			(yyval.attr)=PassAttribute((yyvsp[(1) - (3)].attr));				      
			if((yyvsp[(1) - (3)].attr)->isFunction==1)
			{
			      error_flag=1;
			      printf("\nError : Function is defined like a variable.\n");
			}
			else if((yyvsp[(1) - (3)].attr)->isArray==0)
			{
			     
			     if((yyvsp[(3) - (3)].attr)->numParameters>0)
			      {
				    error_flag=1;
				    printf("\nError : Assigning a List to Variable.\n");
			      }

			     else if((yyvsp[(1) - (3)].attr)->isPointer==1)
			      {
				    if(!((((yyvsp[(3) - (3)].attr)->type==200 && (yyvsp[(3) - (3)].attr)->isString!=1)||(yyvsp[(3) - (3)].attr)->type==400||((yyvsp[(3) - (3)].attr)->type==500&&(yyvsp[(3) - (3)].attr)->isPointer==0))\
				    ||((yyvsp[(3) - (3)].attr)->type==(yyvsp[(1) - (3)].attr)->type && (yyvsp[(3) - (3)].attr)->isPointer==1)||((yyvsp[(1) - (3)].attr)->specifier==2 && (yyvsp[(3) - (3)].attr)->isString==1)))
				    {
					   error_flag=1;
					   printf("\nError : Invalid Assignment to Pointer.\n");
				     }
				     struct SymEntry *p;
				     p=lookup((yyvsp[(1) - (3)].attr)->id,function);
				     p->offset=size;
				      size+=4;

				      

				     (yyval.attr)->icode=replicate((yyvsp[(3) - (3)].attr)->icode);
				      (yyval.attr)->code=replicate((yyvsp[(3) - (3)].attr)->code);
				      sprintf(s1,"\t%s %s\n",(yyvsp[(1) - (3)].attr)->id,((yyvsp[(3) - (3)].attr)->id));
				      (yyval.attr)->icode=append((yyval.attr)->icode,s1);
				      sprintf(s1,"\tlw $t0 %s\n",toAddr((yyvsp[(3) - (3)].attr)->offset));
				      (yyval.attr)->code=append((yyval.attr)->code,s1);
				      sprintf(s1,"\tsw $t0 %s\n",toAddr(p->offset));
				      (yyval.attr)->code=append((yyval.attr)->code,s1);
			      }
			      else
			      {
				    //$1 is not an array, pointer, function so can be int,long,double,float,char
				    if((yyvsp[(3) - (3)].attr)->isFunction==1||(yyvsp[(3) - (3)].attr)->isArray==1||(yyvsp[(3) - (3)].attr)->isPointer==1||(yyvsp[(3) - (3)].attr)->isString==1)
				    {
					error_flag=1;
					printf("\nError : Invalid Assignment to the variable.\n");
				    }
				    
				   //------------------------code generation ------------------------
				    if((yyvsp[(1) - (3)].attr)->type == 400 && (yyvsp[(3) - (3)].attr)->type== 400)
				     {
					
					sprintf(s1 , "%s\t%s = %s\n",(yyvsp[(3) - (3)].attr)->icode, (yyvsp[(1) - (3)].attr)->id , (yyvsp[(3) - (3)].attr)->id);
					icg=replicate(s1);
					sprintf(s1,"%s",(yyvsp[(3) - (3)].attr)->code);
					fcg=replicate(s1);
					sprintf(s1 , "\tlw $t0 %s\n", toAddr((yyvsp[(3) - (3)].attr)->offset));
					fcg=append(fcg,s1);
					sprintf(s1 , "\tsw $t0 %s\n", toAddr((yyvsp[(1) - (3)].attr)->offset)); 
					fcg=append(fcg,s1);
					(yyval.attr)->code=replicate(fcg);
					(yyval.attr)->icode=replicate(icg);
  //PrintAttribute($$);
				      }
			      }
			 }
			 else	//Can be an array only
			  {	(yyval.attr)->isArray=1;
				(yyvsp[(1) - (3)].attr)->isArray=1;
				if((yyvsp[(3) - (3)].attr)->numParameters==0)
				{
				      error_flag=1;
				      printf("\nError : Invalid assignment to an array.\n");
				}
				else if( (yyvsp[(3) - (3)].attr)->numParameters>(yyvsp[(1) - (3)].attr)->ArrayLimit && (yyvsp[(1) - (3)].attr)->ArrayLimit>0)
				{	
				      error_flag=1;
				      printf("\nError : List Size greater than Array Size, do not match.\n");
				}
				else if((yyvsp[(1) - (3)].attr)->ArrayLimit==0)
				{
				      struct SymEntry *p;
				      p=lookup((yyvsp[(1) - (3)].attr)->id,function);
				      p->isArray=1;
				      p->ArrayLimit=(yyvsp[(3) - (3)].attr)->numParameters;
				      (yyvsp[(1) - (3)].attr)->ArrayLimit=(yyvsp[(3) - (3)].attr)->numParameters;
				      (yyval.attr)->ArrayLimit=(yyvsp[(1) - (3)].attr)->ArrayLimit;
//PrintAttribute($3);
				      //p->offset=size;//printf("\nsize : %d\n",size);
				      p->offset=(yyvsp[(3) - (3)].attr)->ParameterList[0]->offset;
				      size=size+((yyval.attr)->ArrayLimit)*4;//printf("\nsize : %d\n",size);
				      if((yyvsp[(1) - (3)].attr)->isPointer==1)
				      {
					    for(counter=0;counter<(yyvsp[(1) - (3)].attr)->ArrayLimit;counter++)
					    {
						if(!((((yyvsp[(3) - (3)].attr)->ParameterList[counter]->type==200 &&(yyvsp[(3) - (3)].attr)->ParameterList[counter]->isString!=1)||(yyvsp[(3) - (3)].attr)->type==400||((yyvsp[(3) - (3)].attr)->ParameterList[counter]->type==500&&(yyvsp[(3) - (3)].attr)->ParameterList[counter]->isPointer==0))\
						||((yyvsp[(3) - (3)].attr)->ParameterList[counter]->type==(yyvsp[(1) - (3)].attr)->type && (yyvsp[(3) - (3)].attr)->ParameterList[counter]->isPointer==1)||((yyvsp[(1) - (3)].attr)->specifier==2 && (yyvsp[(3) - (3)].attr)->ParameterList[counter]->isString==1)))
						{
						      error_flag=1;
						      printf("\nError : Invalid Assignment to Array Pointers.\n");
						}//PrintAttribute($3->ParameterList[counter]);	
					    }
				      }
				      else
				      {
					    //$1 is not pointer, function so can be int,long,double,float,char type array.
					    
					   fcg=replicate("");
					    icg=replicate("");
					    for(counter=0;counter<(yyvsp[(1) - (3)].attr)->ArrayLimit;counter++)
					    {
						if((yyvsp[(3) - (3)].attr)->ParameterList[counter]->isFunction==1||(yyvsp[(3) - (3)].attr)->ParameterList[counter]->isArray==1||(yyvsp[(3) - (3)].attr)->ParameterList[counter]->isPointer==1||(yyvsp[(3) - (3)].attr)->ParameterList[counter]->isString==1)
						{
						    error_flag=1;
						    printf("\nError : Invalid Assignment to the Array Variable.\n");
						    //break;
						}
						icg=append(icg,(yyvsp[(3) - (3)].attr)->ParameterList[counter]->icode);
						fcg=append(fcg,(yyvsp[(3) - (3)].attr)->ParameterList[counter]->code);
						
						sprintf(s1,"\t%s[%d] = %s\n",p->id,counter,(yyvsp[(3) - (3)].attr)->ParameterList[counter]->id);
						icg=append(icg,s1);

						sprintf(s1,"\tlw $t0 %s\n",toAddr((yyvsp[(3) - (3)].attr)->ParameterList[counter]->offset));
						fcg=append(fcg,s1);
						sprintf(s1,"\tsw $t0 %s\n",toAddr(p->offset+(counter*4)));
					    }
					    (yyval.attr)->code=replicate(fcg);
					    (yyval.attr)->icode=replicate(icg);
				      }
				}
			  }
			  assign_flag=0;
			 
		   }
    break;

  case 113:

/* Line 1455 of yacc.c  */
#line 3054 "parser.y"
    {
		    if(DEBUGP){
				printf("\ninit_declarator ->declarator\n");
			}
			if((yyvsp[(1) - (1)].attr)->isArray==1 && (yyvsp[(1) - (1)].attr)->ArrayLimit==0)
			{
			    error_flag=1;
			    printf("\nError : Array Size not defined.\n");
			}
			(yyval.attr)=PassAttribute((yyvsp[(1) - (1)].attr));
			if((yyvsp[(1) - (1)].attr)->isPointer==1)
			{
			    (yyval.attr)->offset=size;
			    struct SymEntry *p;
			    p=lookup((yyvsp[(1) - (1)].attr)->id,function);
			    p->offset=size;
			    size+=4;
			}
			
		   }
    break;

  case 114:

/* Line 1455 of yacc.c  */
#line 3077 "parser.y"
    {
					      if(DEBUGP){
						      printf("\nstorage_class_specifier found 1\n");
					      }
					      temp_inherited->storage = 1;
					      temp_inherited->type+=10;
					      (yyval.attr)=PassAttribute(temp_inherited);
					      error_flag=1;
					      printf("\nError : This C finctionality is not supported\n");
					}
    break;

  case 115:

/* Line 1455 of yacc.c  */
#line 3088 "parser.y"
    {
					      if(DEBUGP){
						      printf("\nstorage_class_specifier found 2\n");
					      }
					      temp_inherited->storage = 2;
					      temp_inherited->type+=20;
					      (yyval.attr)=PassAttribute(temp_inherited);
					      error_flag=1;
					      printf("\nError : This C finctionality is not supported\n");
					}
    break;

  case 116:

/* Line 1455 of yacc.c  */
#line 3099 "parser.y"
    {
					      if(DEBUGP){
						      printf("\nstorage_class_specifier found 3\n");
					      }
					      temp_inherited->storage = 3;
					      temp_inherited->type+=30;
					      (yyval.attr)=PassAttribute(temp_inherited);
					      error_flag=1;
					      printf("\nError : This C finctionality is not supported\n");
					}
    break;

  case 117:

/* Line 1455 of yacc.c  */
#line 3110 "parser.y"
    {
					      if(DEBUGP){
						      printf("\nstorage_class_specifier found 4\n");
					      }
					      temp_inherited->storage = 4;
					      temp_inherited->type+=40;
					      (yyval.attr)=PassAttribute(temp_inherited);
					      error_flag=1;
					      printf("\nError : This C finctionality is not supported\n");
					}
    break;

  case 118:

/* Line 1455 of yacc.c  */
#line 3121 "parser.y"
    {
					      if(DEBUGP){
						      printf("\nstorage_class_specifier found 5\n");
					      }
					      temp_inherited->storage = 5;
					      temp_inherited->type+=50;
					      (yyval.attr)=PassAttribute(temp_inherited);
					      error_flag=1;
					      printf("\nError : This C finctionality is not supported\n");
					}
    break;

  case 119:

/* Line 1455 of yacc.c  */
#line 3134 "parser.y"
    {
					      if(DEBUGP){
						      printf("\ntype_specifier found 1\n");
					      }
					      if(parameter_flag==0)
					      {
						  temp_inherited->specifier = 1;
						  temp_inherited->type+=100;
					      }
					      (yyval.attr)=(struct Attribute*)malloc(sizeof(struct Attribute));
					      (yyval.attr)=initAttr((yyval.attr));
					      (yyval.attr)->specifier = 1;
					      (yyval.attr)->type+=100;
					      //strcpy(temp_inherited->type , "int");
					}
    break;

  case 120:

/* Line 1455 of yacc.c  */
#line 3150 "parser.y"
    {
					      if(DEBUGP){
						      printf("\ntype_specifier found 2\n");
					      }
					      if(parameter_flag==0)
					      {
						  temp_inherited->specifier = 2;
						  temp_inherited->type+=200;
					      }
					      (yyval.attr)=(struct Attribute*)malloc(sizeof(struct Attribute));
					      (yyval.attr)=initAttr((yyval.attr));
					      (yyval.attr)->specifier = 2;
					      (yyval.attr)->type+=200;
					}
    break;

  case 121:

/* Line 1455 of yacc.c  */
#line 3165 "parser.y"
    {
					      if(DEBUGP){
						      printf("\ntype_specifier found 3\n");
					      }
					      if(parameter_flag==0)
					      {
						    temp_inherited->specifier = 3;
						    temp_inherited->type+=300;
					      }
					      (yyval.attr)=(struct Attribute*)malloc(sizeof(struct Attribute));
					      (yyval.attr)=initAttr((yyval.attr));
					      (yyval.attr)->specifier = 3;
					      (yyval.attr)->type+=300;
					}
    break;

  case 122:

/* Line 1455 of yacc.c  */
#line 3180 "parser.y"
    {
					      if(DEBUGP){
						      printf("\ntype_specifier found 4\n");
					      }
					      if(parameter_flag==0)
					      {					      
						  temp_inherited->specifier = 4;
						  temp_inherited->type+=400;
					      }
					      (yyval.attr)=(struct Attribute*)malloc(sizeof(struct Attribute));
					      (yyval.attr)=initAttr((yyval.attr));
					      (yyval.attr)->specifier = 4;
					      (yyval.attr)->type+=400;
					}
    break;

  case 123:

/* Line 1455 of yacc.c  */
#line 3195 "parser.y"
    {
					      if(DEBUGP){
						      printf("\ntype_specifier found 5\n");
					      }
					      if(parameter_flag==0)
					      {
						  temp_inherited->specifier = 5;
						  temp_inherited->type+=500;
					      }
					      (yyval.attr)=(struct Attribute*)malloc(sizeof(struct Attribute));
					      (yyval.attr)=initAttr((yyval.attr));
					      (yyval.attr)->specifier = 5;
					      (yyval.attr)->type+=500;
					}
    break;

  case 124:

/* Line 1455 of yacc.c  */
#line 3210 "parser.y"
    {
					      if(DEBUGP){
						      printf("\ntype_specifier found 6\n");
					      }
					      if(parameter_flag==0)
					      {
						  temp_inherited->specifier = 6;
						  temp_inherited->type+=600;
					      }
					      (yyval.attr)=(struct Attribute*)malloc(sizeof(struct Attribute));
					      (yyval.attr)=initAttr((yyval.attr));
					      (yyval.attr)->specifier = 6;
					      (yyval.attr)->type+=600;
					}
    break;

  case 125:

/* Line 1455 of yacc.c  */
#line 3225 "parser.y"
    {
					      if(DEBUGP){
						      printf("\ntype_specifier found 7\n");
					      }
					      if(parameter_flag==0)
					      {
						  temp_inherited->specifier = 7;
						  temp_inherited->type+=700;
					      }
					      (yyval.attr)=(struct Attribute*)malloc(sizeof(struct Attribute));
					      (yyval.attr)=initAttr((yyval.attr));
					      (yyval.attr)->specifier = 7;
					      (yyval.attr)->type+=700;
					}
    break;

  case 126:

/* Line 1455 of yacc.c  */
#line 3240 "parser.y"
    {
					      if(DEBUGP){
						      printf("\ntype_specifier found 8\n");
					      }
					      if(parameter_flag==0)
					      {
						  temp_inherited->specifier = 8;
						  temp_inherited->type+=800;
					      }
					      (yyval.attr)=(struct Attribute*)malloc(sizeof(struct Attribute));
					      (yyval.attr)=initAttr((yyval.attr));
					      (yyval.attr)->specifier = 8;
					      (yyval.attr)->type+=800;
					}
    break;

  case 127:

/* Line 1455 of yacc.c  */
#line 3255 "parser.y"
    {
					      if(DEBUGP){
						      printf("\ntype_specifier found 9\n");
					      }
					      if(parameter_flag==0)
					      {
						  temp_inherited->specifier = 9;
						  temp_inherited->type+=900;
					      }
					      (yyval.attr)=(struct Attribute*)malloc(sizeof(struct Attribute));
					      (yyval.attr)=initAttr((yyval.attr));
					      (yyval.attr)->specifier = 9;
					      (yyval.attr)->type+=900;
					}
    break;

  case 128:

/* Line 1455 of yacc.c  */
#line 3270 "parser.y"
    {
					      if(DEBUGP){
						      printf("\ntype_specifier found 10\n");
					      }
					      
					      (yyval.attr)=PassAttribute(temp_inherited);
					}
    break;

  case 129:

/* Line 1455 of yacc.c  */
#line 3278 "parser.y"
    {
					      if(DEBUGP){
						      printf("\ntype_specifier found 11\n");
					      }
					      if(parameter_flag==0)
					      {
						  temp_inherited->specifier = 10;
						  temp_inherited->type+=1000;
					      }
					      (yyval.attr)=(struct Attribute*)malloc(sizeof(struct Attribute));
					      (yyval.attr)=initAttr((yyval.attr));
					      (yyval.attr)->specifier = 10;
					      (yyval.attr)->type+=1000;
					}
    break;

  case 130:

/* Line 1455 of yacc.c  */
#line 3293 "parser.y"
    {
					      if(DEBUGP){
						      printf("\ntype_specifier found 12\n");
					      }
					      if(parameter_flag==0)
					      {
						  temp_inherited->specifier = 11;
						  temp_inherited->type+=1100;
					      }
					      (yyval.attr)=(struct Attribute*)malloc(sizeof(struct Attribute));
					      (yyval.attr)=initAttr((yyval.attr));
					      (yyval.attr)->specifier = 11;
					      (yyval.attr)->type+=1100;
					}
    break;

  case 131:

/* Line 1455 of yacc.c  */
#line 3312 "parser.y"
    {
			    if(DEBUGP){
				    printf("\nstruct_or_union_specifier -> struct_or_union identifier '{' struct_declaration_list '}'\n");
			    }
			  error_flag=1;
			  printf("\nError : This C finctionality is not supported\n");			    
		      }
    break;

  case 132:

/* Line 1455 of yacc.c  */
#line 3320 "parser.y"
    {
			    if(DEBUGP){
				    printf("\nstruct_or_union_specifier -> struct_or_union '{' struct_declaration_list '}'\n");
			    }		
			  error_flag=1;
			  printf("\nError : This C finctionality is not supported\n");			   
		      }
    break;

  case 133:

/* Line 1455 of yacc.c  */
#line 3328 "parser.y"
    {
			    if(DEBUGP){
				    printf("\nstruct_or_union_specifier -> struct_or_union identifier\n");
			    }			  
			  error_flag=1;
			  printf("\nError : This C finctionality is not supported\n");			   
		      }
    break;

  case 134:

/* Line 1455 of yacc.c  */
#line 3339 "parser.y"
    {
			    if(DEBUGP){
				    printf("\nstruct_or_union -> STRUCT\n");
			    }	
			    if(parameter_flag==0)
			    {		  
				temp_inherited->specifier=12;
				temp_inherited->type+=120;	
			    }
			    (yyval.attr)=(struct Attribute*)malloc(sizeof(struct Attribute));
			    (yyval.attr)=initAttr((yyval.attr));
			    (yyval.attr)->specifier = 12;
			    (yyval.attr)->type+=1200;
			  error_flag=1;
			  printf("\nError : This C finctionality is not supported\n");			   
		      }
    break;

  case 135:

/* Line 1455 of yacc.c  */
#line 3356 "parser.y"
    {
			    if(DEBUGP){
				    printf("\nstruct_or_union -> UNION\n");
			    }	
			    if(parameter_flag==0)
			    {		  
				temp_inherited->specifier=13;  
				temp_inherited->type+=130;
			    }
			    (yyval.attr)=(struct Attribute*)malloc(sizeof(struct Attribute));
			    (yyval.attr)=initAttr((yyval.attr));
			    (yyval.attr)->specifier = 13;
			    (yyval.attr)->type+=1300;
			  error_flag=1;
			  printf("\nError : This C finctionality is not supported\n");			   
		      }
    break;

  case 136:

/* Line 1455 of yacc.c  */
#line 3376 "parser.y"
    {
			    if(DEBUGP){
				    printf("\nstruct_declaration_list -> struct_declaration\n");
			    }			  
			  error_flag=1;
			  printf("\nError : This C finctionality is not supported\n");			   
		      }
    break;

  case 137:

/* Line 1455 of yacc.c  */
#line 3384 "parser.y"
    {
			    if(DEBUGP){
				    printf("\nstruct_declaration_list -> struct_declaration_list struct_declaration\n");
			    }			  
			  error_flag=1;
			  printf("\nError : This C finctionality is not supported\n");			   
		      }
    break;

  case 138:

/* Line 1455 of yacc.c  */
#line 3395 "parser.y"
    {
			    if(DEBUGP){
				    printf("\nstruct_declaration -> specifier_qualifier_list struct_declarator_list ';'\n");
			    }			  
			  error_flag=1;
			  printf("\nError : This C finctionality is not supported\n");			   
		      }
    break;

  case 139:

/* Line 1455 of yacc.c  */
#line 3406 "parser.y"
    {
			    if(DEBUGP){
				    printf("\nspecifier_qualifier_list -> type_specifier specifier_qualifier_list\n");
			    }			      
			    (yyval.attr)=(struct Attribute*)malloc(sizeof(struct Attribute));
			    (yyval.attr)=initAttr((yyval.attr));
			    error_flag=1;
			    printf("\nError : Compiler does not support this feature of C\n");			  
		      }
    break;

  case 140:

/* Line 1455 of yacc.c  */
#line 3416 "parser.y"
    {
			    if(DEBUGP){
				    printf("\nspecifier_qualifier_list -> type_specifier\n");
			    }
			    (yyval.attr)=PassAttribute((yyvsp[(1) - (1)].attr));
		      }
    break;

  case 141:

/* Line 1455 of yacc.c  */
#line 3423 "parser.y"
    {
			    if(DEBUGP){
				    printf("\nspecifier_qualifier_list -> type_qualifier specifier_qualifier_list\n");
			    }			      
			    (yyval.attr)=(struct Attribute*)malloc(sizeof(struct Attribute));
			    (yyval.attr)=initAttr((yyval.attr));
			    error_flag=1;
			    printf("\nError : Compiler does not support this feature of C\n");			  
		      }
    break;

  case 142:

/* Line 1455 of yacc.c  */
#line 3433 "parser.y"
    {
			    if(DEBUGP){
				    printf("\nspecifier_qualifier_list -> type_qualifier\n");
			    }			      
			    (yyval.attr)=(struct Attribute*)malloc(sizeof(struct Attribute));
			    (yyval.attr)=initAttr((yyval.attr));
			    error_flag=1;
			    printf("\nError : Compiler does not support this feature of C\n");			  
		      }
    break;

  case 143:

/* Line 1455 of yacc.c  */
#line 3446 "parser.y"
    {
			    if(DEBUGP){
				    printf("\nstruct_declarator_list -> struct_declarator\n");
			    }			  
			  error_flag=1;
			  printf("\nError : This C finctionality is not supported\n");			   
		      }
    break;

  case 144:

/* Line 1455 of yacc.c  */
#line 3454 "parser.y"
    {
			    if(DEBUGP){
				    printf("\nstruct_declarator_list -> struct_declarator_list ',' struct_declarator\n");
			    }			  
			  error_flag=1;
			  printf("\nError : This C finctionality is not supported\n");			   
		      }
    break;

  case 145:

/* Line 1455 of yacc.c  */
#line 3465 "parser.y"
    {
			    if(DEBUGP){
				    printf("\nstruct_declarator -> declarator\n");
			    }			  
			     error_flag=1;
			     printf("\nError : This C finctionality is not supported\n");	
		      }
    break;

  case 146:

/* Line 1455 of yacc.c  */
#line 3473 "parser.y"
    {
			    if(DEBUGP){
				    printf("\nstruct_declarator -> ':' constant_expression\n");
			    }			  
			  error_flag=1;
			  printf("\nError : This C finctionality is not supported\n");			   
		      }
    break;

  case 147:

/* Line 1455 of yacc.c  */
#line 3481 "parser.y"
    {
			    if(DEBUGP){
				    printf("\nstruct_declarator -> declarator ':' constant_expression\n");
			    }			  
			    error_flag=1;
			    printf("\nError : This C finctionality is not supported\n");			   
		      }
    break;

  case 148:

/* Line 1455 of yacc.c  */
#line 3492 "parser.y"
    {
			    if(DEBUGP){
				    printf("\nenum_specifier -> ENUM '{' enumerator_list '}'\n");
			    }			  
			  error_flag=1;
			  printf("\nError : This C finctionality is not supported\n");			   
		      }
    break;

  case 149:

/* Line 1455 of yacc.c  */
#line 3500 "parser.y"
    {
			    if(DEBUGP){
				    printf("\nenum_specifier -> ENUM identifier '{' enumerator_list '}'\n");
			    }			  
			  error_flag=1;
			  printf("\nError : This C finctionality is not supported\n");			   
		      }
    break;

  case 150:

/* Line 1455 of yacc.c  */
#line 3508 "parser.y"
    {
			    if(DEBUGP){
				    printf("\nenum_specifier -> ENUM identifier\n");
			    }			  
			  error_flag=1;
			  printf("\nError : This C finctionality is not supported\n");			   
		      }
    break;

  case 151:

/* Line 1455 of yacc.c  */
#line 3519 "parser.y"
    {
			    if(DEBUGP){
				    printf("\nenumerator_list -> enumerator\n");
			    }			  
			  error_flag=1;
			  printf("\nError : This C finctionality is not supported\n");			   
		      }
    break;

  case 152:

/* Line 1455 of yacc.c  */
#line 3527 "parser.y"
    {
			    if(DEBUGP){
				    printf("\nenumerator_list -> enumerator_list ',' enumerator\n");
			    }			  
			  error_flag=1;
			  printf("\nError : This C finctionality is not supported\n");			   
		      }
    break;

  case 153:

/* Line 1455 of yacc.c  */
#line 3538 "parser.y"
    {
			    if(DEBUGP){
				    printf("\nenumerator -> identifier \n");
			    }			  
			  error_flag=1;
			  printf("\nError : This C finctionality is not supported\n");			   
		      }
    break;

  case 154:

/* Line 1455 of yacc.c  */
#line 3546 "parser.y"
    {
			    if(DEBUGP){
				    printf("\nenumerator -> identifier '=' constant_expression\n");
			    }			  
			  error_flag=1;
			  printf("\nError : This C finctionality is not supported\n");			   
		      }
    break;

  case 155:

/* Line 1455 of yacc.c  */
#line 3556 "parser.y"
    {
			  
			    if(DEBUGP){
				    printf("\ntype_qualifier -> CONST\n");
			    }			      
			    (yyval.attr)=(struct Attribute*)malloc(sizeof(struct Attribute));
			    (yyval.attr)=initAttr((yyval.attr));
			    error_flag=1;
			    printf("\nError : Compiler does not support this feature of C\n");
			    /*temp_inherited->qualifier = 1;
			    temp_inherited->type+=1;
			    $$=PassAttribute(temp_inherited);*/
		    }
    break;

  case 156:

/* Line 1455 of yacc.c  */
#line 3570 "parser.y"
    {
			    if(DEBUGP){
				    printf("\ntype_qualifier -> VOLATILE\n");
			    }			      
			    (yyval.attr)=(struct Attribute*)malloc(sizeof(struct Attribute));
			    (yyval.attr)=initAttr((yyval.attr));
			    error_flag=1;
			    printf("\nError : Compiler does not support this feature of C\n");
			    /*temp_inherited->qualifier = 2;
			    temp_inherited->type+=2;
			    $$=PassAttribute(temp_inherited);*/
			}
    break;

  case 157:

/* Line 1455 of yacc.c  */
#line 3587 "parser.y"
    {
			    if(DEBUGP){
				    printf("\ndeclarator ->pointer direct_declarator\n");
			    }
			    (yyval.attr)=PassAttribute((yyvsp[(2) - (2)].attr));
			    (yyval.attr)->isPointer=1;
			}
    break;

  case 158:

/* Line 1455 of yacc.c  */
#line 3596 "parser.y"
    {
			    if(DEBUGP){
				    printf("\ndeclarator ->direct_declarator\n");
			    }			 
			    //PrintAttribute($1);
			    (yyval.attr)=PassAttribute((yyvsp[(1) - (1)].attr));
			}
    break;

  case 159:

/* Line 1455 of yacc.c  */
#line 3606 "parser.y"
    {
		      parameter_flag=1;
		}
    break;

  case 160:

/* Line 1455 of yacc.c  */
#line 3612 "parser.y"
    {
		      parameter_flag=0;
		}
    break;

  case 161:

/* Line 1455 of yacc.c  */
#line 3619 "parser.y"
    {
			      if(DEBUGP){
				    printf("\ndirect_declarator ->identifier\n");
			      }			      
			      //printf("\ndeclaration_flag %d and type of %s is %d %d" , declaration_flag , $1->id, $1->type,$1->scope );
			      
			      if(declaration_flag==1 && parameter_flag==0)
			      {
				  //printf("\nNew variable declared\n");  
				  if((yyvsp[(1) - (1)].sym)->type == 0)
				  {
				      (yyvsp[(1) - (1)].sym)->type = temp_inherited->storage*10 + temp_inherited->specifier*100;				      
				      (yyvsp[(1) - (1)].sym)->isPointer=temp_inherited->isPointer;
				      
				      //$1->isFunction=temp_inherited->isFunction;
				  }
				  else if((yyvsp[(1) - (1)].sym)->scope<currentScope)
				  {
				      struct SymEntry *p;
				      (yyvsp[(1) - (1)].sym)=InsertSymTable((yyvsp[(1) - (1)].sym)->id,currentScope,(yyvsp[(1) - (1)].sym)->type,function);
				      (yyvsp[(1) - (1)].sym)->type = temp_inherited->storage*10 + temp_inherited->specifier*100;				      
				      (yyvsp[(1) - (1)].sym)->isPointer=temp_inherited->isPointer;
				      
				  }
				  else if((yyvsp[(1) - (1)].sym)->isFunction==1)
				  {//	PrintSymEntry($1);
				      if((yyvsp[(1) - (1)].sym)->type!=temp_inherited->specifier*100)
				      {
					  error_flag=1;
					  printf("\nError : Incompatible with previous definition of function %s \n",(yyvsp[(1) - (1)].sym)->id);
				      }
				 }
				 else{
				      printf("\nError : variable %s already defined \n",(yyvsp[(1) - (1)].sym)->id);
				  }
				//printf("\n11111111111 %s : Scope %d : type : %d :currentScope %d,function %d\n",$1->id,$1->scope,$1->type,currentScope,function);   
			      }
			      else if(parameter_flag==0)
			      {
				  if((yyvsp[(1) - (1)].sym)->type ==  0)
				      printf (" Error : variable type %s not defined \n", (yyvsp[(1) - (1)].sym)->id );
			      }			      
			      (yyval.attr)=PassSymEntry((yyvsp[(1) - (1)].sym));
			      if(parameter_flag==0)
			      {
				  (yyval.attr)->specifier=temp_inherited->specifier;
				  //$$->qualifier=temp_inherited->qualifier;
				  (yyval.attr)->storage=temp_inherited->storage;
				  //printf("\ndeclaration_flag %d and type of %s is %d " , declaration_flag , $1->id, $1->type );
			      }
			      
			 }
    break;

  case 162:

/* Line 1455 of yacc.c  */
#line 3673 "parser.y"
    {
			    if(DEBUGP){
				    printf("\ndirect_declarator ->'(' declarator ')'\n");
			     }			      
			  error_flag=1;
			  printf("\nError : This C finctionality is not supported\n");			   
			}
    break;

  case 163:

/* Line 1455 of yacc.c  */
#line 3681 "parser.y"
    {//printf("\nold size %d\n",size);

			    struct SymEntry *p;
			    if(DEBUGP){
				    printf("\ndirect_declarator ->direct_declarator '[' constant_expression ']'\n");
			     }			      
			      //printf("\ndeclaration_flag %d and type of %s is %d parameter_flag : %d" , declaration_flag , $1->id, $1->type,parameter_flag );			      
			      if(declaration_flag==1 && parameter_flag==0)
			      {
				  //printf("\n New variable array declared\n");  
				  if((yyvsp[(1) - (4)].attr)->isArray == 0)
				  {
				      (yyvsp[(1) - (4)].attr)->type = temp_inherited->storage*10 + temp_inherited->specifier*100;
				      (yyvsp[(1) - (4)].attr)->isPointer=temp_inherited->isPointer;
				      (yyvsp[(1) - (4)].attr)->isArray=1;				      
				      p=lookup((yyvsp[(1) - (4)].attr)->id,function);
				      p->isArray=1;
				      if(!(((yyvsp[(3) - (4)].attr)->specifier==2 && (yyvsp[(3) - (4)].attr)->isString==0)||(yyvsp[(3) - (4)].attr)->specifier==4||(yyvsp[(3) - (4)].attr)->specifier==5))
				      {
					    error_flag=1;
					    printf("\nError : Array Size has to an integer\n");
				      }
				      else
				      {
					     (yyvsp[(1) - (4)].attr)->ArrayLimit=(yyvsp[(3) - (4)].attr)->IntConstValue;
					     p->ArrayLimit=(yyvsp[(3) - (4)].attr)->IntConstValue;
//PrintAttribute($1);
					     size=size+((yyvsp[(1) - (4)].attr)->ArrayLimit-1)*4;
				      }
				  }
				  else
				  {
				      error_flag=1;
				      printf("\nError : variable %s already defined \n",(yyvsp[(1) - (4)].attr)->id);
				  }
			      }
			      else if(parameter_flag==0)
			      {
				  if((yyvsp[(1) - (4)].attr)->type ==  0)
				  {
				      error_flag=1;
				      printf (" Error : array variable type %s not defined \n", (yyvsp[(1) - (4)].attr)->id );
				  }
			      }
			      (yyval.attr)=PassAttribute((yyvsp[(1) - (4)].attr));
			      /*printf("\n=======================\n");
			      PrintAttribute($1);PrintAttribute($3);*/

			      if(parameter_flag==1)
			      {
				    (yyval.attr)->isArray=1;
				    if(!(((yyvsp[(3) - (4)].attr)->specifier==2 && (yyvsp[(3) - (4)].attr)->isString==0)||(yyvsp[(3) - (4)].attr)->specifier==4||(yyvsp[(3) - (4)].attr)->specifier==5))
				    {
					  error_flag=1;
					  printf("\nError : Array Size has to an integer\n");
				    }
				    else
				    {
					    (yyval.attr)->ArrayLimit=(yyvsp[(3) - (4)].attr)->IntConstValue;				
				    }
			      }
			      //PrintAttribute($1);PrintAttribute($3);
			      //printf("\ndeclaration_flag %d and type of %s is %d " , declaration_flag , $1->id, $1->type );			      
//printf("\nold size %d\n",size);
			}
    break;

  case 164:

/* Line 1455 of yacc.c  */
#line 3747 "parser.y"
    {
			     //PrintAttribute($1);
			     struct SymEntry *p;
			    if(DEBUGP){
				    printf("\ndirect_declarator ->direct_declarator '[' ']'\n");
			     }		//printf("\ndeclaration_flag %d and type of %s is %d,parameter_flag : %d" , declaration_flag , $1->id, $1->type,parameter_flag );
			      if(declaration_flag==0 && parameter_flag==0)
			      {
				 // printf("\n New variable array declared\n");  
				  if((yyvsp[(1) - (3)].attr)->isArray == 0)
				  {
				      (yyvsp[(1) - (3)].attr)->type = temp_inherited->storage*10 + temp_inherited->specifier*100;//iski zarurat hai nahi shayad.
				      (yyvsp[(1) - (3)].attr)->isPointer=temp_inherited->isPointer;
				      (yyvsp[(1) - (3)].attr)->isArray=1;				      
				      p=lookup((yyvsp[(1) - (3)].attr)->id,function);
				      p->isArray=1;
				      (yyvsp[(1) - (3)].attr)->ArrayLimit=0;
				      p->ArrayLimit=0;
				  }
				  else
				  {
				      error_flag=1;
				      printf("\nError : variable %s already defined \n",(yyvsp[(1) - (3)].attr)->id);
				  }
			      }
			      else if(parameter_flag==0)
			      {
				  if((yyvsp[(1) - (3)].attr)->type ==  0)
				  {
				      error_flag=1;
				      printf (" Error : array variable type %s not defined \n", (yyvsp[(1) - (3)].attr)->id );
				  }
			      }
			      (yyval.attr)=PassAttribute((yyvsp[(1) - (3)].attr));
			      (yyval.attr)->isArray=1;
			      
			      //printf("\ndeclaration_flag %d and type of %s is %d " , declaration_flag , $1->id, $1->type );			      	      
			}
    break;

  case 165:

/* Line 1455 of yacc.c  */
#line 3786 "parser.y"
    {
			    if(DEBUGP){
				    printf("\ndirect_declarator ->direct_declarator '(' set_parameter_flag parameter_type_list  unset_parameter_flag ')'\n");
			     }	//PrintAttribute($1);printf("\n===========\n");
			     if((parameter_flag==1&&declaration_flag!=1))
			     {
				  error_flag=1;
				  printf("\nError : Function Overloading/Passing Function as Argument is out of Implemented Scope\n");
			     }
			     else
			     {	      struct SymEntry *p;
				      (yyvsp[(1) - (6)].attr)->type = temp_inherited->storage*10 + temp_inherited->specifier*100;//iski zarurat hai nahi shayad.
				      (yyvsp[(1) - (6)].attr)->isPointer=temp_inherited->isPointer;
				      (yyvsp[(1) - (6)].attr)->isFunction=1;				      
				      p=lookup((yyvsp[(1) - (6)].attr)->id,function);
				      //printf("\n===%d\n",linenumber);PrintAttribute($1);printf("\n-----------------\n");				      
				      if(p->isFunction==1)
				      {
					  if(p->numParameters!=(yyvsp[(4) - (6)].attr)->numParameters)
					  {
						error_flag=1;
						printf("\nError3 : Function Overloading not possible\n");
					  }
					  else
					  {

					      for(counter=0;counter<(yyvsp[(4) - (6)].attr)->numParameters;counter++)
					      {
						  if(p->ParameterList[counter]->type!=(yyvsp[(4) - (6)].attr)->ParameterList[counter]->type)
						  {
							error_flag=1;
							printf("\nError4 : Function Overloading not possible\n");
						  }
					      }
					  }
				      }
				      else
				      {
					  p->isFunction=1;
					  //Now pass parameters
					  for(counter=0;counter<(yyvsp[(4) - (6)].attr)->numParameters;counter++)
					  {
					      (yyvsp[(1) - (6)].attr)->ParameterList[counter]=PassAttribute((yyvsp[(4) - (6)].attr)->ParameterList[counter]);
					      p->ParameterList[counter]=PassAttribute((yyvsp[(4) - (6)].attr)->ParameterList[counter]);
					  }
					  (yyvsp[(1) - (6)].attr)->numParameters=(yyvsp[(4) - (6)].attr)->numParameters;
					  p->numParameters=(yyvsp[(4) - (6)].attr)->numParameters;
					  //printf("\nM1-----------------\n");PrintSymEntry(p);PrintAttribute($4);printf("\nM2-----------------\n");
				      }
			     }
			      (yyval.attr)=PassAttribute((yyvsp[(1) - (6)].attr));
			      (yyval.attr)->isFunction=1;
			      funcName=(char*)malloc(sizeof(char)*strlen((yyvsp[(1) - (6)].attr)->id)+1);
			      strcpy(funcName,(yyvsp[(1) - (6)].attr)->id);
			      temp_Parameters=PassAttribute((yyvsp[(4) - (6)].attr));//PrintAttribute($1);printf("\n=00000000000\n");PrintAttribute($4);
			}
    break;

  case 166:

/* Line 1455 of yacc.c  */
#line 3843 "parser.y"
    {
			    
			    if(DEBUGP){
				    printf("\ndirect_declarator -> direct_declarator '('set_parameter_flag identifier_list unset_parameter_flag')'\n");
			     }			      
			      error_flag=1;
			      printf("\nError : Implementation out of Scope of compiler.\n");
			      (yyval.attr)=PassAttribute((yyvsp[(1) - (6)].attr));	
			      funcName=(char*)malloc(sizeof(char)*strlen((yyvsp[(1) - (6)].attr)->id)+1);
			      strcpy(funcName,(yyvsp[(1) - (6)].attr)->id);		      
			}
    break;

  case 167:

/* Line 1455 of yacc.c  */
#line 3855 "parser.y"
    {
			    if(DEBUGP){
				    printf("\ndirect_declarator -> direct_declarator '(' ')'\n");
			     }			      
			     if((yyvsp[(1) - (3)].attr)->isFunction==1 || parameter_flag==1)
			     {
				  error_flag=1;
				  printf("\nError : Function Overloading/Passing Function as Argument is out of Implemented Scope\n");
			     }
			     else
			     {	      struct SymEntry *p;
				      (yyvsp[(1) - (3)].attr)->type = temp_inherited->storage*10 + temp_inherited->specifier*100;//iski zarurat hai nahi shayad.
				      (yyvsp[(1) - (3)].attr)->isPointer=temp_inherited->isPointer;
				      (yyvsp[(1) - (3)].attr)->isFunction=1;				      
				      p=lookup((yyvsp[(1) - (3)].attr)->id,function);
				      if(p->isFunction==1 && p->numParameters!=0)
				      {
					    error_flag=1;
					    printf("\nError : Function has no arguments according to previous definition\n");
				      }
				      else
				      {
					  p->isFunction=1;
					  //Now pass parameters
					  p->numParameters=0;
					  p->numParameters=0;
				      }
			     }	
			     (yyval.attr)=PassAttribute((yyvsp[(1) - (3)].attr));
			     (yyval.attr)->isFunction=1;
			      funcName=(char*)malloc(sizeof(char)*strlen((yyvsp[(1) - (3)].attr)->id)+1);
			      strcpy(funcName,(yyvsp[(1) - (3)].attr)->id);
			}
    break;

  case 168:

/* Line 1455 of yacc.c  */
#line 3892 "parser.y"
    {
			    if(DEBUGP){
				    printf("\npointer ->\n");
			     }			      
			      (yyval.attr) = (struct Attribute*)malloc(sizeof (struct Attribute));
			      (yyval.attr)=initAttr((yyval.attr));	
			      (yyval.attr)->isPointer=1;
			      if(parameter_flag==0)
			      {
				    temp_inherited->isPointer=1;
			      }
			}
    break;

  case 169:

/* Line 1455 of yacc.c  */
#line 3905 "parser.y"
    {
			    if(DEBUGP){
				    printf("\npointer ->'*' type_qualifier_list\n");
			     }			      
			    error_flag=1;
			      printf("\nError : Out of Implemented Scope\n");
			}
    break;

  case 170:

/* Line 1455 of yacc.c  */
#line 3913 "parser.y"
    {
			    if(DEBUGP){
				    printf("\npointer ->'*' pointer\n");
			     }			      
			    error_flag=1;
			      printf("\nError : Out of Implemented Scope\n");			      
			}
    break;

  case 171:

/* Line 1455 of yacc.c  */
#line 3921 "parser.y"
    {
			    if(DEBUGP){
				    printf("\npointer ->'*' type_qualifier_list pointer\n");
			     }			      
			    error_flag=1;
			      printf("\nError : Out of Implemented Scope\n");			      
			}
    break;

  case 172:

/* Line 1455 of yacc.c  */
#line 3932 "parser.y"
    {
			    if(DEBUGP){
				    printf("\ntype_qualifier_list ->type_qualifier\n");
			     }			      
			    (yyval.attr)=PassAttribute((yyvsp[(1) - (1)].attr));
			}
    break;

  case 173:

/* Line 1455 of yacc.c  */
#line 3939 "parser.y"
    {
			    if(DEBUGP){
				    printf("\ntype_qualifier_list ->type_qualifier_list type_qualifier\n");
			     }			 
			  error_flag=1;
			  printf("\nError : This C finctionality is not supported\n");			        
			  (yyval.attr)=PassAttribute((yyvsp[(1) - (2)].attr));
			}
    break;

  case 174:

/* Line 1455 of yacc.c  */
#line 3951 "parser.y"
    {
			    if(DEBUGP){
				    printf("\nparameter_type_list -> parameter_list\n");
			     }	
			     (yyval.attr)=PassAttribute((yyvsp[(1) - (1)].attr));
			}
    break;

  case 175:

/* Line 1455 of yacc.c  */
#line 3958 "parser.y"
    {
			    if(DEBUGP){
				    printf("\nparameter_type_list -> parameter_list , ELLIPSIS\n");
			     }	
			     (yyval.attr)=PassAttribute((yyvsp[(1) - (3)].attr));
			     error_flag=1;
			     printf("\nError : Ellipsis is not in the Implemented Scope\n");
			}
    break;

  case 176:

/* Line 1455 of yacc.c  */
#line 3970 "parser.y"
    {
			    if(DEBUGP){
				    printf("\nparameter_list -> parameter_declaration\n");
			     }	
			      (yyval.attr) = (struct Attribute*)malloc(sizeof (struct Attribute));
			      (yyval.attr)=initAttr((yyval.attr));	
			      (yyval.attr)->ParameterList[0]=PassAttribute((yyvsp[(1) - (1)].attr));
			      (yyval.attr)->numParameters=1;
			}
    break;

  case 177:

/* Line 1455 of yacc.c  */
#line 3980 "parser.y"
    {
			    if(DEBUGP){
				    printf("\nparameter_list -> parameter_list ',' parameter_declaration\n");
			     }			      			
			     (yyval.attr)=PassAttribute((yyvsp[(1) - (3)].attr));
			     (yyval.attr)->ParameterList[(yyvsp[(1) - (3)].attr)->numParameters]=PassAttribute((yyvsp[(3) - (3)].attr));
			     (yyval.attr)->numParameters++;
			}
    break;

  case 178:

/* Line 1455 of yacc.c  */
#line 3992 "parser.y"
    { //Use type info from declaration_specifiers and declarator and delete the declarator->name from symtable.
			    if(DEBUGP){
				    printf("\nparameter_declaration -> declaration_specifiers declarator\n");
			     }
			      //PrintAttribute($2);      

			      (yyval.attr)=PassAttribute((yyvsp[(2) - (2)].attr));
			      //$$->id=replicate($1->id);
			      (yyval.attr)->type=(yyvsp[(1) - (2)].attr)->type;
			      (yyval.attr)->specifier=(yyvsp[(1) - (2)].attr)->specifier;
			      (yyval.attr)->qualifier=(yyvsp[(1) - (2)].attr)->qualifier;
			      if((yyvsp[(2) - (2)].attr)->isFunction==1)
			      {
				    error_flag=1;
				    printf("\nError : Function Passing is out of Implemented Scope\n");
			      }
			}
    break;

  case 179:

/* Line 1455 of yacc.c  */
#line 4010 "parser.y"
    {
			    if(DEBUGP){
				    printf("\nparameter_declaration -> declaration_specifiers abstract_declarator\n");
			     }
			      (yyval.attr)=PassAttribute((yyvsp[(2) - (2)].attr));
			      (yyval.attr)->specifier=(yyvsp[(1) - (2)].attr)->specifier;
			      (yyval.attr)->type=(yyvsp[(1) - (2)].attr)->type;
			}
    break;

  case 180:

/* Line 1455 of yacc.c  */
#line 4019 "parser.y"
    {
			    if(DEBUGP){
				    printf("\nparameter_declaration -> declaration_specifiers\n");
			     }			 
			      (yyval.attr)=PassAttribute((yyvsp[(1) - (1)].attr));
			}
    break;

  case 181:

/* Line 1455 of yacc.c  */
#line 4029 "parser.y"
    {
			    if(DEBUGP){
				    printf("\nidentifier_list -> identifier\n");
			     }	
			      (yyval.attr) = (struct Attribute*)malloc(sizeof (struct Attribute));
			      (yyval.attr)=initAttr((yyval.attr));	
			      (yyval.attr)->ParameterList[0]=PassSymEntry((yyvsp[(1) - (1)].sym));
			      (yyval.attr)->numParameters=1;
			}
    break;

  case 182:

/* Line 1455 of yacc.c  */
#line 4039 "parser.y"
    {
			    if(DEBUGP){
				    printf("\nidentifier_list -> identifier_list ',' identifier\n");
			     }			
			     (yyval.attr)=PassAttribute((yyvsp[(1) - (3)].attr));
			     (yyval.attr)->ParameterList[(yyvsp[(1) - (3)].attr)->numParameters]=PassSymEntry((yyvsp[(3) - (3)].sym));
			     (yyval.attr)->numParameters++;
			}
    break;

  case 183:

/* Line 1455 of yacc.c  */
#line 4051 "parser.y"
    {
			    if(DEBUGP){
				    printf("\ntype_name -> specifier_qualifier_list\n");
			     }
				//temporary
				(yyval.attr) = PassAttribute((yyvsp[(1) - (1)].attr));
			}
    break;

  case 184:

/* Line 1455 of yacc.c  */
#line 4059 "parser.y"
    {
			    if(DEBUGP){
				    printf("\ntype_name -> specifier_qualifier_list abstract_declarator\n");
			     }//temporary
				(yyval.attr) = PassAttribute((yyvsp[(2) - (2)].attr));
				(yyval.attr)->specifier=(yyvsp[(1) - (2)].attr)->specifier;
				(yyval.attr)->type=(yyvsp[(1) - (2)].attr)->type;
			}
    break;

  case 185:

/* Line 1455 of yacc.c  */
#line 4071 "parser.y"
    {
			    if(DEBUGP){
				    printf("\nabstract_declarator -> pointer\n");
			     }
			     (yyval.attr)=PassAttribute((yyvsp[(1) - (1)].attr));
			}
    break;

  case 186:

/* Line 1455 of yacc.c  */
#line 4078 "parser.y"
    {
			    if(DEBUGP){
				    printf("\nabstract_declarator -> direct_abstract_declarator\n");
			     }
			     (yyval.attr)=PassAttribute((yyvsp[(1) - (1)].attr));
			}
    break;

  case 187:

/* Line 1455 of yacc.c  */
#line 4085 "parser.y"
    {
			    if(DEBUGP){
				    printf("\nabstract_declarator -> pointer direct_abstract_declarator\n");
			     }			  
			      (yyval.attr)=PassAttribute((yyvsp[(1) - (2)].attr));
			      (yyval.attr)->isPointer=1;
			}
    break;

  case 188:

/* Line 1455 of yacc.c  */
#line 4096 "parser.y"
    {
			    if(DEBUGP){
				    printf("\ndirect_abstract_declarator -> '(' abstract_declarator ')'\n");
			     }			      
			    (yyval.attr)=(struct Attribute*)malloc(sizeof(struct Attribute));
			    (yyval.attr)=initAttr((yyval.attr));
			    error_flag=1;
			    printf("\nError : Compiler does not support this feature of C\n");
			}
    break;

  case 189:

/* Line 1455 of yacc.c  */
#line 4107 "parser.y"
    {
			    if(DEBUGP){
				    printf("\ndirect_abstract_declarator -> [ ]\n");
			     }			      
			    (yyval.attr)=(struct Attribute*)malloc(sizeof(struct Attribute));
			    (yyval.attr)=initAttr((yyval.attr));
			    (yyval.attr)->isArray=1;
			}
    break;

  case 190:

/* Line 1455 of yacc.c  */
#line 4116 "parser.y"
    {
			    if(DEBUGP){
				    printf("\ndirect_abstract_declarator -> '[' constant_expression ']'\n");
			     }			      
			    (yyval.attr)=(struct Attribute*)malloc(sizeof(struct Attribute));
			    (yyval.attr)=initAttr((yyval.attr));
			    (yyval.attr)->isArray=1;
			    if(!(((yyvsp[(2) - (3)].attr)->specifier==2 && (yyvsp[(2) - (3)].attr)->isString==0)||(yyvsp[(2) - (3)].attr)->specifier==4||(yyvsp[(2) - (3)].attr)->specifier==5))
			      {
				    error_flag=1;
				    printf("\nError : Array Size of Parameter has to an integer\n");
			      }
			      else
			      {
				      (yyval.attr)->ArrayLimit=(yyvsp[(2) - (3)].attr)->IntConstValue;				      
			      }			      	      
			}
    break;

  case 191:

/* Line 1455 of yacc.c  */
#line 4134 "parser.y"
    {
			    if(DEBUGP){
				    printf("\ndirect_abstract_declarator -> direct_abstract_declarator '[' ']'\n");
			     }			      
			    (yyval.attr)=(struct Attribute*)malloc(sizeof(struct Attribute));
			    (yyval.attr)=initAttr((yyval.attr));
			    error_flag=1;
			    printf("\nError : Compiler does not support this feature of C\n");			      
			}
    break;

  case 192:

/* Line 1455 of yacc.c  */
#line 4144 "parser.y"
    {
			    if(DEBUGP){
				    printf("\ndirect_abstract_declarator -> direct_abstract_declarator '[' constant_expression ']'\n");
			     }			      
			    (yyval.attr)=(struct Attribute*)malloc(sizeof(struct Attribute));
			    (yyval.attr)=initAttr((yyval.attr));
			    error_flag=1;
			    printf("\nError : Compiler does not support this feature of C\n");
			}
    break;

  case 193:

/* Line 1455 of yacc.c  */
#line 4154 "parser.y"
    {
			    if(DEBUGP){
				    printf("\ndirect_abstract_declarator -> '(' ')'\n");
			     }			      
			    (yyval.attr)=(struct Attribute*)malloc(sizeof(struct Attribute));
			    (yyval.attr)=initAttr((yyval.attr));
			    error_flag=1;
			    printf("\nError : Compiler does not support this feature of C\n");			      
			}
    break;

  case 194:

/* Line 1455 of yacc.c  */
#line 4164 "parser.y"
    {
			    if(DEBUGP){
				    printf("\ndirect_abstract_declarator -> '(' parameter_type_list ')'\n");
			     }			      
			    (yyval.attr)=(struct Attribute*)malloc(sizeof(struct Attribute));
			    (yyval.attr)=initAttr((yyval.attr));
			    error_flag=1;
			    printf("\nError : Compiler does not support this feature of C\n");			      
			}
    break;

  case 195:

/* Line 1455 of yacc.c  */
#line 4174 "parser.y"
    {
			    if(DEBUGP){
				    printf("\ndirect_abstract_declarator -> direct_abstract_declarator '(' ')'\n");
			     }			      
			    (yyval.attr)=(struct Attribute*)malloc(sizeof(struct Attribute));
			    (yyval.attr)=initAttr((yyval.attr));
			    error_flag=1;
			    printf("\nError : Compiler does not support this feature of C\n");			      
			}
    break;

  case 196:

/* Line 1455 of yacc.c  */
#line 4184 "parser.y"
    {
			    if(DEBUGP){
				    printf("\ndirect_abstract_declarator -> direct_abstract_declarator '(' parameter_type_list ')'\n");
			     }			      
			    (yyval.attr)=(struct Attribute*)malloc(sizeof(struct Attribute));
			    (yyval.attr)=initAttr((yyval.attr));
			    error_flag=1;
			    printf("\nError : Compiler does not support this feature of C\n");			      
			}
    break;

  case 197:

/* Line 1455 of yacc.c  */
#line 4197 "parser.y"
    {
			    if(DEBUGP){
				    printf("\ninitializer -> assignment_expression\n");
			     }
				(yyval.attr)=PassAttribute((yyvsp[(1) - (1)].attr));
			}
    break;

  case 198:

/* Line 1455 of yacc.c  */
#line 4204 "parser.y"
    {
			    if(DEBUGP){
				    printf("\ninitializer -> '{' initializer_list '}'\n");
			     }
			  (yyval.attr)=(struct Attribute*)malloc(sizeof (struct Attribute));
			  (yyval.attr)=initAttr((yyval.attr));
			  if((yyvsp[(2) - (3)].attr)->numParameters>0)
			  {
			      (yyval.attr)->numParameters=(yyvsp[(2) - (3)].attr)->numParameters;
			      for(counter=0;counter<(yyvsp[(2) - (3)].attr)->numParameters;counter++)
			      {
				    (yyval.attr)->ParameterList[counter]=(yyvsp[(2) - (3)].attr)->ParameterList[counter];
			      }
			  }
			  else
			  {
			      (yyval.attr)->ParameterList[0]=PassAttribute((yyvsp[(2) - (3)].attr));
			      (yyval.attr)->numParameters=1;
			  }
			}
    break;

  case 199:

/* Line 1455 of yacc.c  */
#line 4225 "parser.y"
    {
			    if(DEBUGP){
				    printf("\ninitializer -> '{' initializer_list ',' '}'\n");
			     }
			  (yyval.attr)=(struct Attribute*)malloc(sizeof (struct Attribute));
			  (yyval.attr)=initAttr((yyval.attr));
			  if((yyvsp[(2) - (4)].attr)->numParameters>0)
			  {
			      (yyval.attr)->numParameters=(yyvsp[(2) - (4)].attr)->numParameters;
			      for(counter=0;counter<(yyvsp[(2) - (4)].attr)->numParameters;counter++)
			      {
				    (yyval.attr)->ParameterList[counter]=(yyvsp[(2) - (4)].attr)->ParameterList[counter];
			      }
			  }
			  else
			  {
			      (yyval.attr)->ParameterList[0]=PassAttribute((yyvsp[(2) - (4)].attr));
			      (yyval.attr)->numParameters=1;
			  }
			}
    break;

  case 200:

/* Line 1455 of yacc.c  */
#line 4249 "parser.y"
    {
			    if(DEBUGP){
				    printf("\ninitializer_list -> initializer\n");
			     }
			    //if($1->numParameters>0)
			    //{
				(yyval.attr)=(struct Attribute*)malloc(sizeof (struct Attribute));
				(yyval.attr)=initAttr((yyval.attr));
				(yyval.attr)->ParameterList[0]=PassAttribute((yyvsp[(1) - (1)].attr));
				(yyval.attr)->numParameters=1;
			    //}
			    //else
			    //{
			//	$$=PassAttribute($1);
			  //  }
			    //PrintAttribute($$);
			}
    break;

  case 201:

/* Line 1455 of yacc.c  */
#line 4267 "parser.y"
    {
			    if(DEBUGP){
				    printf("\ninitializer_list -> initializer_list ',' initializer\n");
			     }
				  
			    (yyval.attr)=PassAttribute((yyvsp[(1) - (3)].attr));
			    (yyval.attr)->ParameterList[(yyval.attr)->numParameters]=PassAttribute((yyvsp[(3) - (3)].attr));
			    (yyval.attr)->numParameters++;	
			    //PrintAttribute($$);
			}
    break;

  case 202:

/* Line 1455 of yacc.c  */
#line 4281 "parser.y"
    {
			    if(DEBUGP){
				    printf("\nstatement -> labeled_statement\n");
			     }			
			    (yyval.attr)=PassAttribute((yyvsp[(1) - (1)].attr));
			}
    break;

  case 203:

/* Line 1455 of yacc.c  */
#line 4288 "parser.y"
    {
			    if(DEBUGP){
				    printf("\nstatement -> compound_statement\n");
			     }
			      (yyval.attr)=PassAttribute((yyvsp[(1) - (1)].attr));
			}
    break;

  case 204:

/* Line 1455 of yacc.c  */
#line 4295 "parser.y"
    {
			    if(DEBUGP){
				    printf("\nstatement -> expression_statement\n");
			     }			
			      (yyval.attr)=PassAttribute((yyvsp[(1) - (1)].attr));
			}
    break;

  case 205:

/* Line 1455 of yacc.c  */
#line 4302 "parser.y"
    {
			    if(DEBUGP){
				    printf("\nstatement -> selection_statement\n");
			     }			
			      (yyval.attr)=PassAttribute((yyvsp[(1) - (1)].attr));
			}
    break;

  case 206:

/* Line 1455 of yacc.c  */
#line 4309 "parser.y"
    {
			    if(DEBUGP){
				    printf("\nstatement -> iteration_statement\n");
			     }			
			      (yyval.attr)=PassAttribute((yyvsp[(1) - (1)].attr));
			}
    break;

  case 207:

/* Line 1455 of yacc.c  */
#line 4316 "parser.y"
    {
			    if(DEBUGP){
				    printf("\nstatement -> jump_statement\n");
			     }			
			      (yyval.attr)=PassAttribute((yyvsp[(1) - (1)].attr));
			}
    break;

  case 208:

/* Line 1455 of yacc.c  */
#line 4326 "parser.y"
    {
			    if(DEBUGP){
				    printf("\nlabeled_statement -> identifier ':' statement\n");
			     }			  
			    error_flag=1;
			    printf("\nError : Labels are out of implemented Scope\n");
			}
    break;

  case 209:

/* Line 1455 of yacc.c  */
#line 4334 "parser.y"
    {
			    if(DEBUGP){
				    printf("\nlabeled_statement -> CASE constant_expression ':' statement\n");
			     }
			      (yyval.attr)=PassAttribute((yyvsp[(2) - (4)].attr));
			    if((yyvsp[(2) - (4)].attr)->qualifier!=1||(yyvsp[(2) - (4)].attr)->isString==1)
			    {
				error_flag=1;
				printf("\nError : Invalid Label Type\n");
				
			    }			    
			    else
			    {
			      
				  char *fcg,*icg,s1[10000],*l1;
		
				    l1=getNewLabel();//PrintAttribute($2);			     
				    fcg=replicate("\n\n");
				    fcg=append(fcg,(yyvsp[(2) - (4)].attr)->code);
				    icg=replicate((yyvsp[(2) - (4)].attr)->icode);
				    //PrintAttribute(temp_expression);
				    fcg=append(fcg,temp_expression->code);
				    icg=append(icg,temp_expression->icode);
				    
				    sprintf(s1 , "\tif %s=%s then goto %s \n %s\n\t%s:\n" ,temp_expression->id,(yyvsp[(2) - (4)].attr)->id, l1 , (yyvsp[(4) - (4)].attr)->icode,l1);
				    icg = append(icg , s1);

				    
				    sprintf( s1 , "\tlw $t0 %s\n" , toAddr((yyvsp[(2) - (4)].attr)->offset) );
				    fcg = append( fcg , s1);
				    sprintf( s1 , "\tlw $t1 %s\n" , toAddr(temp_expression->offset) );
				    fcg = append( fcg , s1);
				    sprintf(s1 , "\tbne $t0 $t1 %s\n" , l1);
				    fcg = append( fcg , s1);
				    fcg = append( fcg , (yyvsp[(4) - (4)].attr)->code);
				    sprintf(s1 , "\t%s :\n" , l1);
				    fcg = append( fcg , s1);
//				    fcg = append( fcg , "\n\n");
				  (yyval.attr)->code=replicate(fcg);
				  (yyval.attr)->icode=replicate(icg);
			    }  
			}
    break;

  case 210:

/* Line 1455 of yacc.c  */
#line 4377 "parser.y"
    {
			    if(DEBUGP){
				    printf("\nlabeled_statement -> DEFAULT ':' statement\n");
			     }			      
			      (yyval.attr)=PassAttribute((yyvsp[(3) - (3)].attr));
			      char s1[10000];	
			      
			      (yyval.attr)->icode=replicate((yyvsp[(3) - (3)].attr)->icode);
			      sprintf(s1,"\tgoto %s\n",end[currentDepth-1]);
			      (yyval.attr)->icode=append((yyval.attr)->icode,s1);

			      (yyval.attr)->code=replicate("\n\n");
			      (yyval.attr)->code=append((yyval.attr)->code,(yyvsp[(3) - (3)].attr)->code);
			      sprintf(s1,"\tj %s\n",end[currentDepth-1]);
			      (yyval.attr)->code=append((yyval.attr)->code,s1);

			}
    break;

  case 211:

/* Line 1455 of yacc.c  */
#line 4398 "parser.y"
    {
			    if(DEBUGP){
				    printf("\ncompound_statement -> { } \n");
			     }						      
			    (yyval.attr)=(struct Attribute*)malloc(sizeof(struct Attribute));
			    (yyval.attr)=initAttr((yyval.attr));
			    (yyval.attr)->type=100;
			    (yyval.attr)->specifier=1;  
			    (yyval.attr)->code=replicate("");
			    (yyval.attr)->icode=replicate("");
			    
			}
    break;

  case 212:

/* Line 1455 of yacc.c  */
#line 4411 "parser.y"
    {
			    if(DEBUGP){
				    printf("\ncompound_statement -> '{' new_scope compound_statement_list finish_scope '}' \n");
			     }			
			      (yyval.attr)=PassAttribute((yyvsp[(3) - (5)].attr));   
			}
    break;

  case 213:

/* Line 1455 of yacc.c  */
#line 4418 "parser.y"
    {
			    if(DEBUGP){
				    printf("\ncompound_statement -> '{' new_scope compound_declaration_list finish_scope'}' \n");
			     }			
			      (yyval.attr)=PassAttribute((yyvsp[(3) - (5)].attr));   
			}
    break;

  case 214:

/* Line 1455 of yacc.c  */
#line 4428 "parser.y"
    {
			    if(DEBUGP){
				    printf("\ncompound_statement_list -> declaration_list  \n");
			     }			
			      (yyval.attr)=PassAttribute((yyvsp[(1) - (1)].attr));	      
			}
    break;

  case 215:

/* Line 1455 of yacc.c  */
#line 4435 "parser.y"
    {
			    if(DEBUGP){
				    printf("\ncompound_statement_list -> declaration_list compound_declaration_list \n");
			     }					      
			    (yyval.attr)=(struct Attribute*)malloc(sizeof(struct Attribute));
			    (yyval.attr)=initAttr((yyval.attr));
			    (yyval.attr)->type=100;
			    (yyval.attr)->specifier=1;	      
			    (yyval.attr)->code=replicate((yyvsp[(1) - (2)].attr)->code);
			    (yyval.attr)->icode=replicate((yyvsp[(1) - (2)].attr)->icode);
			    (yyval.attr)->code=append((yyval.attr)->code,(yyvsp[(2) - (2)].attr)->code);
			    (yyval.attr)->icode=append((yyval.attr)->icode,(yyvsp[(2) - (2)].attr)->icode);
			}
    break;

  case 216:

/* Line 1455 of yacc.c  */
#line 4452 "parser.y"
    {
			    if(DEBUGP){
				    printf("\ncompound_declaration_list -> statement_list  \n");
			     }					      
			      (yyval.attr)=PassAttribute((yyvsp[(1) - (1)].attr));
			}
    break;

  case 217:

/* Line 1455 of yacc.c  */
#line 4459 "parser.y"
    {
			    if(DEBUGP){
				    printf("\ncompound_declaration_list -> statement_list compound_statement_list \n");
			     }					      
			    (yyval.attr)=(struct Attribute*)malloc(sizeof(struct Attribute));
			    (yyval.attr)=initAttr((yyval.attr));
			    (yyval.attr)->type=100;
			    (yyval.attr)->specifier=1;	      
			    (yyval.attr)->code=replicate((yyvsp[(1) - (2)].attr)->code);
			    (yyval.attr)->icode=replicate((yyvsp[(1) - (2)].attr)->icode);
			    (yyval.attr)->code=append((yyval.attr)->code,(yyvsp[(2) - (2)].attr)->code);
			    (yyval.attr)->icode=append((yyval.attr)->icode,(yyvsp[(2) - (2)].attr)->icode);
			}
    break;

  case 218:

/* Line 1455 of yacc.c  */
#line 4476 "parser.y"
    {
			    if(DEBUGP){
				    printf("\ndeclaration_list -> declaration \n");
			     }			
			      (yyval.attr)=PassAttribute((yyvsp[(1) - (1)].attr)); 
			}
    break;

  case 219:

/* Line 1455 of yacc.c  */
#line 4483 "parser.y"
    {
			    if(DEBUGP){
				    printf("\ndeclaration_list -> declaration_list declaration \n");
			     }					      
			    (yyval.attr)=(struct Attribute*)malloc(sizeof(struct Attribute));
			    (yyval.attr)=initAttr((yyval.attr));
			    (yyval.attr)->type=100;
			    (yyval.attr)->specifier=1;	      
			    (yyval.attr)->code=replicate((yyvsp[(1) - (2)].attr)->code);
			    (yyval.attr)->icode=replicate((yyvsp[(1) - (2)].attr)->icode);
			    (yyval.attr)->code=append((yyval.attr)->code,(yyvsp[(2) - (2)].attr)->code);
			    (yyval.attr)->icode=append((yyval.attr)->icode,(yyvsp[(2) - (2)].attr)->icode);
			}
    break;

  case 220:

/* Line 1455 of yacc.c  */
#line 4500 "parser.y"
    {
			    if(DEBUGP){
				    printf("\nstatement_list -> statement \n");
			     }			
			      (yyval.attr)=PassAttribute((yyvsp[(1) - (1)].attr));   
			}
    break;

  case 221:

/* Line 1455 of yacc.c  */
#line 4507 "parser.y"
    {
			    if(DEBUGP){
				    printf("\nstatement_list -> statement_list statement \n");
			     }				      
			    (yyval.attr)=(struct Attribute*)malloc(sizeof(struct Attribute));
			    (yyval.attr)=initAttr((yyval.attr));
			    (yyval.attr)->type=100;
			    (yyval.attr)->specifier=1;		      
			    (yyval.attr)->code=replicate((yyvsp[(1) - (2)].attr)->code);
			    (yyval.attr)->icode=replicate((yyvsp[(1) - (2)].attr)->icode);
			    (yyval.attr)->code=append((yyval.attr)->code,(yyvsp[(2) - (2)].attr)->code);
			    (yyval.attr)->icode=append((yyval.attr)->icode,(yyvsp[(2) - (2)].attr)->icode);
			    
			}
    break;

  case 222:

/* Line 1455 of yacc.c  */
#line 4525 "parser.y"
    {
			    if(DEBUGP){
				    printf("\nexpression_statement -> ';' \n");
			     }					      
			    (yyval.attr)=(struct Attribute*)malloc(sizeof(struct Attribute));
			    (yyval.attr)=initAttr((yyval.attr));
			    (yyval.attr)->type=100;
			    (yyval.attr)->specifier=1;	      
			    (yyval.attr)->code=replicate("");
			    (yyval.attr)->icode=replicate("");assign_flag=0;
			}
    break;

  case 223:

/* Line 1455 of yacc.c  */
#line 4537 "parser.y"
    {
			    if(DEBUGP){
				    printf("\nexpression_statement -> expression ';' \n");
			     }				      assign_flag=0;
			    (yyval.attr)=PassAttribute((yyvsp[(1) - (2)].attr));//PrintAttribute($$);			    	      
			}
    break;

  case 224:

/* Line 1455 of yacc.c  */
#line 4544 "parser.y"
    {
			    if(DEBUGP){
				    printf("\nexpression_statement -> expression error  \n");
			     }			      
			    printf("\nError : semicolon missing\n " );			      
			     (yyval.attr)=PassAttribute((yyvsp[(1) - (2)].attr));
			    error_flag=1;
			   assign_flag=0;
			}
    break;

  case 225:

/* Line 1455 of yacc.c  */
#line 4556 "parser.y"
    {
		    start[currentDepth]=getNewLabel();
		    end[currentDepth]=getNewLabel();
		    currentDepth++;
		}
    break;

  case 226:

/* Line 1455 of yacc.c  */
#line 4564 "parser.y"
    {
		    if(start[currentDepth+1]!=NULL)
		    {
			free(start[currentDepth+1]);
			free(end[currentDepth+1]);
		    }
		    currentDepth--;
		}
    break;

  case 227:

/* Line 1455 of yacc.c  */
#line 4576 "parser.y"
    {
		  switch_flag=1;
	    }
    break;

  case 228:

/* Line 1455 of yacc.c  */
#line 4584 "parser.y"
    {
		  switch_flag=0;
	    }
    break;

  case 229:

/* Line 1455 of yacc.c  */
#line 4591 "parser.y"
    {
			    if(DEBUGP){
				    printf("\nselection_statement -> IF '(' expression ')' if_then_else_branch \n");
			     }
			      (yyval.attr)=PassAttribute((yyvsp[(5) - (5)].attr));   
		  
			      char *fcg,*icg,s1[10000],*l1;
	  
			      l1=getNewLabel();			     
			      fcg=replicate((yyvsp[(3) - (5)].attr)->code);
			      icg=replicate((yyvsp[(3) - (5)].attr)->icode);
			      
			      sprintf(s1 , "\tif %s=0 then goto %s \n %s\n\t%s:\n" ,(yyvsp[(3) - (5)].attr)->id, l1 , (yyvsp[(5) - (5)].attr)->icode,l1);
			      icg = append(icg , s1);

			      sprintf( s1 , "\tlw $t0 %s\n" , toAddr((yyvsp[(3) - (5)].attr)->offset) );
			      fcg = append( fcg , s1);
			      sprintf(s1 , "\tbeq $t0 $0 %s\n" , l1);
			      fcg = append( fcg , s1);
			      fcg = append( fcg , (yyvsp[(5) - (5)].attr)->code);
			      sprintf(s1 , "\t%s:\n" , l1);
			      fcg = append( fcg , s1);
			    (yyval.attr)->code=replicate(fcg);
			    (yyval.attr)->icode=replicate(icg);
			      
			      
			}
    break;

  case 230:

/* Line 1455 of yacc.c  */
#line 4619 "parser.y"
    {
			    if(DEBUGP){
				    printf("\nif_then_else_branch -> statement ELSE statement \n");
			     }		 	 
			      (yyval.attr)=PassAttribute((yyvsp[(5) - (7)].attr));  
			      char *fcg,*icg,s1[10000],*l1,*l2;
	  
			      l1=getNewLabel();
			      l2=getNewLabel();
			      fcg=replicate((yyvsp[(3) - (7)].attr)->code);
			      icg=replicate((yyvsp[(3) - (7)].attr)->icode);
			      			      
			      sprintf(s1,"\tif %s=0 then goto %s\n",(yyvsp[(3) - (7)].attr)->id,l1);
			      icg=append(icg,s1);
			      sprintf(s1,"%s\tgoto %s\n",(yyvsp[(5) - (7)].attr)->icode,l2);
			      icg=append(icg,s1);
			      sprintf(s1,"\t%s :\n%s \t%s :\n",l1,(yyvsp[(7) - (7)].attr)->icode,l2);
			      icg = append(icg , s1);


			      sprintf( s1 , "\tlw $t0 %s\n" , toAddr((yyvsp[(3) - (7)].attr)->offset) );     
			      fcg = append( fcg , s1);
			      sprintf(s1 , "\tbeq $t0 $0 %s\n" , l1);
			      fcg = append( fcg , s1);
			      sprintf(s1 , "%s",(yyvsp[(5) - (7)].attr)->code);
			      fcg = append( fcg , s1);
			      sprintf(s1 , "\tj %s\n",l2);
			      fcg = append( fcg , s1);
			      sprintf(s1 , "\t%s :\n%s",l1,(yyvsp[(7) - (7)].attr)->code);
			      fcg = append( fcg , s1);
			      sprintf(s1 , "\t%s :\n",l2);
			      fcg = append( fcg , s1);
			      (yyval.attr)->code=replicate(fcg);
			      (yyval.attr)->icode=replicate(icg);
			}
    break;

  case 231:

/* Line 1455 of yacc.c  */
#line 4655 "parser.y"
    {
			    if(DEBUGP){
				    printf("\nselection_statement -> SWITCH '(' expression ')' statement \n");
			     }
			      
			      (yyval.attr)=PassAttribute((yyvsp[(7) - (9)].attr));  
			      fcg=replicate((yyvsp[(4) - (9)].attr)->code);
			      icg=replicate((yyvsp[(4) - (9)].attr)->icode);
		      
			      sprintf(s1,"%s",(yyvsp[(7) - (9)].attr)->icode);
			      icg=append(icg,s1);
			      sprintf(s1,"\t%s :\n",end[currentDepth]);
			      icg=append(icg,s1);
			
			      sprintf(s1,"%s",(yyvsp[(7) - (9)].attr)->code);
			      fcg=append(fcg,s1);
			      sprintf(s1,"\t%s :\n",end[currentDepth]);
			      fcg=append(fcg,s1);
					  
			      (yyval.attr)->code=replicate(fcg);
			      (yyval.attr)->icode=replicate(icg);
			      
			}
    break;

  case 232:

/* Line 1455 of yacc.c  */
#line 4699 "parser.y"
    {
			    if(DEBUGP){
				    printf("\niteration_statement -> WHILE '(' expression ')' statement \n");
			     }		
			     (yyval.attr)=PassAttribute((yyvsp[(6) - (7)].attr));
			       //,*start,*end;
	  
			      //start=getNewLabel();
			      //end=getNewLabel();
			      sprintf(s1,"\t%s :\n",start[currentDepth]);
			      fcg=replicate(s1);
			      icg=replicate(s1);
			      fcg=append(fcg,(yyvsp[(4) - (7)].attr)->code);
			      icg=append(icg,(yyvsp[(4) - (7)].attr)->icode);
			      			      
			      sprintf(s1,"\tif %s=0 then goto %s\n",(yyvsp[(4) - (7)].attr)->id,end[currentDepth]);
			      icg=append(icg,s1);
			      sprintf(s1,"%s\tgoto %s\n",(yyvsp[(6) - (7)].attr)->icode,start[currentDepth]);
			      icg=append(icg,s1);
			      sprintf(s1,"\t%s :\n",end[currentDepth]);
			     icg = append(icg , s1);


			      sprintf( s1 , "\tlw $t0 %s\n" , toAddr((yyvsp[(4) - (7)].attr)->offset) );     
			      fcg = append( fcg , s1);
			      sprintf(s1 , "\tbeq $t0 $0 %s\n" , end[currentDepth]);
			      fcg = append( fcg , s1);
			      sprintf(s1 , "%s",(yyvsp[(6) - (7)].attr)->code);
			      fcg = append( fcg , s1);
			      sprintf(s1 , "\tj %s\n",start[currentDepth]);
			      fcg = append( fcg , s1);
			      sprintf(s1 , "\t%s :\n",end[currentDepth]);
			      fcg = append( fcg , s1);
			      (yyval.attr)->code=replicate(fcg);
			      (yyval.attr)->icode=replicate(icg);
			    
			}
    break;

  case 233:

/* Line 1455 of yacc.c  */
#line 4737 "parser.y"
    {
			    if(DEBUGP){
				    printf("\niteration_statement -> DO statement WHILE '(' expression ')' ';'\n");
			     }	
			      (yyval.attr)=PassAttribute((yyvsp[(3) - (9)].attr));
			       //,*start;
	  
			      //start=getNewLabel();
			      
			      sprintf(s1,"\t%s :\n",start[currentDepth]);
			      fcg=replicate(s1);
			      icg=replicate(s1);
			      fcg=append(fcg,(yyvsp[(3) - (9)].attr)->code);
			      icg=append(icg,(yyvsp[(3) - (9)].attr)->icode);
			      			      
			      sprintf(s1,"%s\tif %s!=0 then goto %s\n",(yyvsp[(6) - (9)].attr)->icode,(yyvsp[(6) - (9)].attr)->id,start[currentDepth]);
			      icg=append(icg,s1);
			     


			      sprintf( s1 , "%s\tlw $t0 %s\n" , (yyvsp[(6) - (9)].attr)->code,toAddr((yyvsp[(6) - (9)].attr)->offset) );     
			      fcg = append( fcg , s1);
			      sprintf(s1 , "\tbne $t0 $0 %s\n" , start[currentDepth]);
			      fcg = append( fcg , s1);
			      (yyval.attr)->code=replicate(fcg);
			      (yyval.attr)->icode=replicate(icg);
			}
    break;

  case 234:

/* Line 1455 of yacc.c  */
#line 4764 "parser.y"
    {assign_flag=0;}
    break;

  case 235:

/* Line 1455 of yacc.c  */
#line 4765 "parser.y"
    {
			    if(DEBUGP){
				    printf("\niteration_statement -> FOR '(' expression_statement expression_statement ')' statement \n");
			     }		
			      //,*start,*end;
			      (yyval.attr)=PassAttribute((yyvsp[(8) - (9)].attr)); 
			      //start=getNewLabel();
			      //end=getNewLabel();
			      fcg=replicate((yyvsp[(4) - (9)].attr)->code);
			      icg=replicate((yyvsp[(4) - (9)].attr)->icode);
			      sprintf(s1,"\t%s :\n",start[currentDepth]);
			      fcg=append(fcg,s1);
			      icg=append(icg,s1);
			      fcg=append(fcg,(yyvsp[(5) - (9)].attr)->code);
			      icg=append(icg,(yyvsp[(5) - (9)].attr)->icode);
			      			      
			      sprintf(s1,"\tif %s=0 then goto %s\n",(yyvsp[(5) - (9)].attr)->id,end[currentDepth]);
			      icg=append(icg,s1);
			      sprintf(s1,"%s\tgoto %s\n",(yyvsp[(8) - (9)].attr)->icode,start[currentDepth]);
			      icg=append(icg,s1);
			      sprintf(s1,"\t%s :\n",end[currentDepth]);
			     icg = append(icg , s1);


			      sprintf( s1 , "\tlw $t0 %s\n" , toAddr((yyvsp[(5) - (9)].attr)->offset) );     
			      fcg = append( fcg , s1);
			      sprintf(s1 , "\tbeq $t0 $0 %s\n" , end[currentDepth]);
			      fcg = append( fcg , s1);
			      sprintf(s1 , "%s",(yyvsp[(8) - (9)].attr)->code);
			      fcg = append( fcg , s1);
			      sprintf(s1 , "\tj %s\n",start[currentDepth]);
			      fcg = append( fcg , s1);
			      sprintf(s1 , "\t%s :\n",end[currentDepth]);
			      fcg = append( fcg , s1);
			      (yyval.attr)->code=replicate(fcg);
			      (yyval.attr)->icode=replicate(icg);
			}
    break;

  case 236:

/* Line 1455 of yacc.c  */
#line 4802 "parser.y"
    {assign_flag=0;}
    break;

  case 237:

/* Line 1455 of yacc.c  */
#line 4803 "parser.y"
    {
			    if(DEBUGP){
				    printf("\niteration_statement -> FOR '(' expression_statement expression_statement expression ')' statement\n");
			     }	
			      
			      (yyval.attr)=PassAttribute((yyvsp[(9) - (10)].attr));     
			      //$$=PassAttribute($6); 
			      //start=getNewLabel();
			      //end=getNewLabel();
			      fcg=replicate((yyvsp[(4) - (10)].attr)->code);
			      icg=replicate((yyvsp[(4) - (10)].attr)->icode);
			      sprintf(s1,"\t%s :\n",start[currentDepth]);
			      fcg=append(fcg,s1);
			      icg=append(icg,s1);
			      fcg=append(fcg,(yyvsp[(5) - (10)].attr)->code);
			      icg=append(icg,(yyvsp[(5) - (10)].attr)->icode);
			      sprintf(s1,"\tif %s=0 then goto %s\n",(yyvsp[(5) - (10)].attr)->id,end[currentDepth]);
			      icg=append(icg,s1);
			      sprintf(s1,"%s",(yyvsp[(9) - (10)].attr)->icode);
			      icg=append(icg,s1);
			      sprintf(s1,"%s\tgoto %s\n",(yyvsp[(6) - (10)].attr)->icode,start[currentDepth]);
			      icg=append(icg,s1);
			      sprintf(s1,"\t%s :\n",end[currentDepth]);
			     icg = append(icg , s1);


			      sprintf( s1 , "\tlw $t0 %s\n" , toAddr((yyvsp[(5) - (10)].attr)->offset) );     
			      fcg = append( fcg , s1);
			      sprintf(s1 , "\tbeq $t0 $0 %s\n" , end[currentDepth]);
			      fcg = append( fcg , s1);
			      sprintf(s1 , "%s",(yyvsp[(9) - (10)].attr)->code);
			      fcg = append( fcg , s1);
			      sprintf(s1 , "%s",(yyvsp[(6) - (10)].attr)->code);
			      fcg = append( fcg , s1);			      
			      sprintf(s1 , "\tj %s\n",start[currentDepth]);
			      fcg = append( fcg , s1);
			      sprintf(s1 , "\t%s :\n",end[currentDepth]);
			      fcg = append( fcg , s1);
			      (yyval.attr)->code=replicate(fcg);
			      (yyval.attr)->icode=replicate(icg);
			}
    break;

  case 238:

/* Line 1455 of yacc.c  */
#line 4848 "parser.y"
    {
			    if(DEBUGP){
				    printf("\njump_statement -> GOTO identifier ';'\n");
			     }					      
			    (yyval.attr)=(struct Attribute*)malloc(sizeof(struct Attribute));
			    (yyval.attr)=initAttr((yyval.attr));
			    (yyval.attr)->type=100;
			    (yyval.attr)->specifier=1;			    
			    error_flag=1;
			    printf("\nError : Out of Compiler Implementation Scope\n");			    	      
			}
    break;

  case 239:

/* Line 1455 of yacc.c  */
#line 4860 "parser.y"
    {
			    if(DEBUGP){
				    printf("\njump_statement -> CONTINUE ';'\n");
			     }			      
			    (yyval.attr)=(struct Attribute*)malloc(sizeof(struct Attribute));
			    (yyval.attr)=initAttr((yyval.attr));
			    (yyval.attr)->type=100;
			    (yyval.attr)->specifier=1;			      
			    if(error_flag==0)
			    {
				char s1[10000];
				sprintf(s1,"\tgoto %s\n",start[currentDepth-1]);
				(yyval.attr)->icode=replicate(s1);
				sprintf(s1,"\tj %s\n",start[currentDepth-1]);
				(yyval.attr)->code=replicate(s1);
			    }
			    else
			    {
				 (yyval.attr)->code=replicate("");
				 (yyval.attr)->icode=replicate("");
			    }
			}
    break;

  case 240:

/* Line 1455 of yacc.c  */
#line 4883 "parser.y"
    {
			    if(DEBUGP){
				    printf("\njump_statement -> BREAK ';'\n");
			     }				      
			    (yyval.attr)=(struct Attribute*)malloc(sizeof(struct Attribute));
			    (yyval.attr)=initAttr((yyval.attr));
			    (yyval.attr)->type=100;
			    (yyval.attr)->specifier=1;		      
			    if(error_flag==0)
			    {
				char s1[10000];
				sprintf(s1,"\tgoto %s\n",end[currentDepth-1]);
				(yyval.attr)->icode=replicate(s1);
				sprintf(s1,"\tj %s\n",end[currentDepth-1]);
				(yyval.attr)->code=replicate(s1);
			    }
			    else
			    {
				 (yyval.attr)->code=replicate("");
				 (yyval.attr)->icode=replicate("");
			    }
			}
    break;

  case 241:

/* Line 1455 of yacc.c  */
#line 4906 "parser.y"
    {
			    if(DEBUGP){
				    printf("\njump_statement -> RETURN ';'\n");
			     }				      
			    (yyval.attr)=(struct Attribute*)malloc(sizeof(struct Attribute));
			    (yyval.attr)=initAttr((yyval.attr));
			    (yyval.attr)->type=100;
			    (yyval.attr)->specifier=1;	
			    if(error_flag==0)
			    {
				char s1[10000];				
				sprintf(s1,"\tRETURN return_value 0\n");
				(yyval.attr)->icode=replicate(s1);
				
				sprintf(s1,"\tlw $ra %s\n",toAddr(0));
				(yyval.attr)->code=replicate(s1);				
				
				sprintf(s1,"\tsw $0 %s\n",toAddr(0));
				(yyval.attr)->code=append((yyval.attr)->code,s1);		
				//sprintf(s1,"\tjr $ra\n");
				sprintf(s1,"\tj %s\n",funcEndLabel);
				(yyval.attr)->code=append((yyval.attr)->code,s1);				

			    }
			    else
			    {
				 (yyval.attr)->code=replicate("");
				 (yyval.attr)->icode=replicate("");
			    }
			}
    break;

  case 242:

/* Line 1455 of yacc.c  */
#line 4937 "parser.y"
    {
			    if(DEBUGP){
				    printf("\njump_statement -> RETURN expression ';'\n");
			     }				      
			    (yyval.attr)=(struct Attribute*)malloc(sizeof(struct Attribute));
			    (yyval.attr)=initAttr((yyval.attr));
			    (yyval.attr)->type=100;
			    (yyval.attr)->specifier=1;
			    struct Attribute *p;
			    //printf("\n-----------------%s--\n",funcName);
			    p=PassSymEntry(lookup(funcName,0));
			    p->specifier=p->type/100;
			    p->isFunction=0;
			    if((yyvsp[(2) - (3)].attr)->type==100)
			    {
				 error_flag=1;
				 printf("\nError : Invalid Return Type\n");
			    }
			   if((yyvsp[(2) - (3)].attr)->isFunction==1)
			    {	 
				 error_flag=1;
				 printf("\nError : Cannot have a Function Return Type\n");
			    }
			    if(!(p->isArray==(yyvsp[(2) - (3)].attr)->isArray && p->isPointer == (yyvsp[(2) - (3)].attr)->isPointer)||CheckBeforeMerge(p,(yyvsp[(2) - (3)].attr)))
			    {
				 error_flag=1;
				 printf("\nError : Invalid Return Type\n");
			    }
			    if(error_flag==0)
			    {
				char s1[10000];				

				sprintf(s1,"%s\tRETURN return_value %s\n",(yyvsp[(2) - (3)].attr)->icode,(yyvsp[(2) - (3)].attr)->id);
				(yyval.attr)->icode=replicate(s1);				
				//$$->code
				sprintf(s1,"%s\tlw $ra %s\n",(yyvsp[(2) - (3)].attr)->code,toAddr(0));
				(yyval.attr)->code=replicate(s1);				
				
				sprintf(s1,"\tlw $t0 %s\n",toAddr((yyvsp[(2) - (3)].attr)->offset));
				(yyval.attr)->code=append((yyval.attr)->code,s1);

				sprintf(s1,"\tsw $t0 %s\n",toAddr(0));
				(yyval.attr)->code=append((yyval.attr)->code,s1);
				
				//sprintf(s1,"\tjr $ra\n");
				sprintf(s1,"\tj %s\n",funcEndLabel);
				(yyval.attr)->code=append((yyval.attr)->code,s1);
				
			    }
			    else
			    {
				 (yyval.attr)->code=replicate("");
				 (yyval.attr)->icode=replicate("");
			    }
				
			}
    break;

  case 243:

/* Line 1455 of yacc.c  */
#line 4996 "parser.y"
    { 		
			      fprintf(fcgFile,"%s",(yyvsp[(1) - (1)].attr)->code);
			      fprintf(icgFile,"%s",(yyvsp[(1) - (1)].attr)->icode);
			      //fprintf(fcgFile,"#Print :\n%s",printcode);
	      }
    break;

  case 244:

/* Line 1455 of yacc.c  */
#line 5004 "parser.y"
    {
			    if(DEBUGP){
				    printf("\nstrt -> new_scope external_declaration finish_scope\n");
			     }			      
			     (yyval.attr)=PassAttribute((yyvsp[(1) - (1)].attr));
			}
    break;

  case 245:

/* Line 1455 of yacc.c  */
#line 5011 "parser.y"
    {
			    if(DEBUGP){
				    printf("\nstrt -> strt external_declaration\n");
			     }	
			      (yyval.attr)=PassAttribute((yyvsp[(1) - (2)].attr));
			      (yyval.attr)->code=append((yyval.attr)->code,(yyvsp[(2) - (2)].attr)->code);
			      (yyval.attr)->icode=append((yyval.attr)->icode,(yyvsp[(2) - (2)].attr)->icode);
			}
    break;

  case 246:

/* Line 1455 of yacc.c  */
#line 5023 "parser.y"
    {
			    if(DEBUGP){
				    printf("\nexternal_declaration -> function_definition\n");
			     }			      				      
			    (yyval.attr)=PassAttribute((yyvsp[(1) - (1)].attr));
			}
    break;

  case 247:

/* Line 1455 of yacc.c  */
#line 5030 "parser.y"
    {
			    if(DEBUGP){
				    printf("\nexternal_declaration -> declaration\n");
			     }	
			     (yyval.attr)=PassAttribute((yyvsp[(1) - (1)].attr));
			}
    break;

  case 248:

/* Line 1455 of yacc.c  */
#line 5039 "parser.y"
    {
		    if(function==1)
		    {
			  error_flag=1;
			  printf("\nError : Cannot Declare a function in a function\n");
		    }
		    funcEndLabel=getNewLabel();
		    function=1;
		    currentScope=-1;	
		    free(global[1]);
		    global[1]=CreateNewSymTableNode();
		    tail[1]=global[1];
		    global[1]->name=(char*)malloc(sizeof(char)*strlen(funcName)+1);
		    strcpy(global[1]->name,funcName);
		    oldsize =size;
		    size=4;
		    //PrintAttribute(temp_Parameters);
		    struct SymEntry *p,*q;
		   //printf("\n--------------------------------\n");
		    if(temp_Parameters->numParameters!=0)
		    {
			  q=lookup(funcName,0);
			  if(q->type != temp_inherited->type)
			  {
			      error_flag=1;
			      printf("\nError : Function Definition not consistent with prevoius definition\n");
			  }
			  if(q->numParameters != temp_Parameters->numParameters)
			  {
			      error_flag=1;
			      printf("\nError1 %d: Function Overloading not possible\n",linenumber);
			  }
			  //PrintSymEntry(q);//rintAttribute(temp_Parameters);
			  for(counter=0;counter<temp_Parameters->numParameters;counter++)
			  {
			      if(q->ParameterList[counter]->type!=temp_Parameters->ParameterList[counter]->type)
			      {
				  printf("\nError2 : Function Overloading not possible\n");
				  error_flag=1;
			      }
			      if(temp_Parameters->ParameterList[counter]->id==NULL)
			      {
				  printf("\nError4 : Varibale name for the parameter is missing\n");
				  error_flag=1;
			      }
			      p=InsertSymTable(temp_Parameters->ParameterList[counter]->id,0,temp_Parameters->ParameterList[counter]->type,function);
			      p->offset=size;
			      size+=4;
			      q->ParameterList[counter]=PassAttribute(temp_Parameters->ParameterList[counter]);
			      
			  }
		    }
		    temp_Parameters=initAttr(temp_Parameters);
//printf("\n--------------------------------\n");
//PrintSymEntry(q);//PrintAttribute(temp_Parameters);
		    //PrintSymEntry(lookup(global[1]->name,0));
	      
		}
    break;

  case 249:

/* Line 1455 of yacc.c  */
#line 5100 "parser.y"
    {
		    function=0;
		    currentScope=0;
		    size=oldsize;
		}
    break;

  case 250:

/* Line 1455 of yacc.c  */
#line 5109 "parser.y"
    {
			    if(DEBUGP){
				    printf("\nfunction_definition -> declaration_specifiers declarator declaration_list compound_statement\n");
			     } 
			    (yyval.attr)=(struct Attribute*)malloc(sizeof(struct Attribute));
			    (yyval.attr)=initAttr((yyval.attr));
			    (yyval.attr)->type=100;
			    (yyval.attr)->specifier=1;
			    error_flag=1;
			    printf("\nError : Compiler does not support this feature of C\n");					      
			    
			    sprintf(s1,"\n\t%s :\n",(yyvsp[(2) - (8)].attr)->id);
			    fcg=replicate(s1);
			    icg=replicate(s1);
		    
   			    icg=append(icg,(yyvsp[(3) - (8)].attr)->icode);
			    icg=append(icg,(yyvsp[(6) - (8)].attr)->icode);
			    sprintf(s1,"\tRETURN : END OF SUB ROUTINE\n");
			    icg=append(icg,s1);

			    sprintf(s1,"\tsw $ra 0($sp)\n");
			    fcg=append(fcg,s1);
			    fcg=append(fcg,(yyvsp[(3) - (8)].attr)->code);
			    fcg=append(fcg,(yyvsp[(6) - (8)].attr)->code);
			    
			    sprintf(s1,"\tlw $ra %s\n",toAddr(0));
			    fcg=append(fcg,s1);	

			    
			    sprintf(s1,"\t%s :\n",funcEndLabel);
			    fcg=append(fcg,s1);
			    sprintf(s1,"\tjr $ra\n");
			    fcg=append(fcg,s1);

			    (yyval.attr)->code=replicate(fcg);
			    (yyval.attr)->icode=replicate(icg);
			}
    break;

  case 251:

/* Line 1455 of yacc.c  */
#line 5147 "parser.y"
    {
			    if(DEBUGP){
				    printf("\nfunction_definition -> declaration_specifiers declarator compound_statement\n");
			     }			 
			    (yyval.attr)=(struct Attribute*)malloc(sizeof(struct Attribute));
			    (yyval.attr)=initAttr((yyval.attr));
			    (yyval.attr)->type=100;
			    (yyval.attr)->specifier=1;     

			    
			    sprintf(s1,"\n\t%s :\n",(yyvsp[(2) - (7)].attr)->id);
			    fcg=replicate(s1);
			    icg=replicate(s1);
		       			    
			    icg=append(icg,(yyvsp[(5) - (7)].attr)->icode);
			    sprintf(s1,"\tRETURN : END OF SUB ROUTINE\n");
			    icg=append(icg,s1);
						    
			    sprintf(s1,"\tsw $ra 0($sp)\n");
			    fcg=append(fcg,s1);
			    fcg=append(fcg,(yyvsp[(5) - (7)].attr)->code);
			    sprintf(s1,"\tlw $ra %s\n",toAddr(0));
			    fcg=append(fcg,s1);
	
			    sprintf(s1,"\t%s :\n",funcEndLabel);
			    fcg=append(fcg,s1);
			    sprintf(s1,"\tjr $ra\n");
			    fcg=append(fcg,s1);
	
			    (yyval.attr)->code=replicate(fcg);
			    (yyval.attr)->icode=replicate(icg);
			    
			    
			}
    break;

  case 252:

/* Line 1455 of yacc.c  */
#line 5182 "parser.y"
    {
			    if(DEBUGP){
				    printf("\nfunction_definition -> declarator declaration_list compound_statement\n");
			     }		
			    (yyval.attr)=(struct Attribute*)malloc(sizeof(struct Attribute));
			    (yyval.attr)=initAttr((yyval.attr));
			    (yyval.attr)->type=100;
			    (yyval.attr)->specifier=1;
			    error_flag=1;
			    
			    sprintf(s1,"\n\t%s :\n",(yyvsp[(2) - (7)].attr)->id);
			    fcg=replicate(s1);
			    icg=replicate(s1);
		    
   			    icg=append(icg,(yyvsp[(2) - (7)].attr)->icode);
			    icg=append(icg,(yyvsp[(5) - (7)].attr)->icode);
			    sprintf(s1,"\tRETURN : END SUB ROUTINE\n");
			    icg=append(icg,s1);

			    sprintf(s1,"\tsw $ra 0($sp)\n");
			    fcg=append(fcg,s1);
			    fcg=append(fcg,(yyvsp[(2) - (7)].attr)->code);
			    fcg=append(fcg,(yyvsp[(5) - (7)].attr)->code);
			    
			    sprintf(s1,"\tlw $ra %s\n",toAddr(0));
			    fcg=append(fcg,s1);				
				
	      
			    sprintf(s1,"\t%s :\n",funcEndLabel);
			    fcg=append(fcg,s1);
			    sprintf(s1,"\tjr $ra\n");
			    fcg=append(fcg,s1);

			    (yyval.attr)->code=replicate(fcg);
			    (yyval.attr)->icode=replicate(icg);

			    printf("\nError : Compiler does not support this feature of C\n");			      
			}
    break;

  case 253:

/* Line 1455 of yacc.c  */
#line 5221 "parser.y"
    {
			    if(DEBUGP){
				    printf("\nfunction_definition -> declarator compound_statement\n");
			     }			      
			    (yyval.attr)=(struct Attribute*)malloc(sizeof(struct Attribute));
			    (yyval.attr)=initAttr((yyval.attr));
			    (yyval.attr)->type=100;
			    (yyval.attr)->specifier=1;
			    //if declarator is not defined then 
			    if(lookup((yyvsp[(1) - (6)].attr)->id,0)==NULL)
			    {
				error_flag=1;
				printf("\nError : Compiler does not support this feature of C\n");		
			    }
			    
			    
			    sprintf(s1,"\n\t%s :\n",(yyvsp[(1) - (6)].attr)->id);
			    fcg=replicate(s1);
			    icg=replicate(s1);
		       			    
			    icg=append(icg,(yyvsp[(4) - (6)].attr)->icode);
			    sprintf(s1,"\tRETURN : END SUB ROUTINE\n");
			    icg=append(icg,s1);
			
			    sprintf(s1,"\tsw $ra 0($sp)\n");
			    fcg=append(fcg,s1);
			    fcg=append(fcg,(yyvsp[(4) - (6)].attr)->code);
			    
			    sprintf(s1,"\tlw $ra %s\n",toAddr(0));
			    fcg=append(fcg,s1);	

			    sprintf(s1,"\t%s :\n",funcEndLabel);
			    fcg=append(fcg,s1);
			    sprintf(s1,"\tjr $ra\n");
			    fcg=append(fcg,s1);

			    (yyval.attr)->code=replicate(fcg);
			    (yyval.attr)->icode=replicate(icg);
			}
    break;



/* Line 1455 of yacc.c  */
#line 8267 "y.tab.c"
      default: break;
    }
  YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc);

  YYPOPSTACK (yylen);
  yylen = 0;
  YY_STACK_PRINT (yyss, yyssp);

  *++yyvsp = yyval;

  /* Now `shift' the result of the reduction.  Determine what state
     that goes to, based on the state we popped back to and the rule
     number reduced by.  */

  yyn = yyr1[yyn];

  yystate = yypgoto[yyn - YYNTOKENS] + *yyssp;
  if (0 <= yystate && yystate <= YYLAST && yycheck[yystate] == *yyssp)
    yystate = yytable[yystate];
  else
    yystate = yydefgoto[yyn - YYNTOKENS];

  goto yynewstate;


/*------------------------------------.
| yyerrlab -- here on detecting error |
`------------------------------------*/
yyerrlab:
  /* If not already recovering from an error, report this error.  */
  if (!yyerrstatus)
    {
      ++yynerrs;
#if ! YYERROR_VERBOSE
      yyerror (YY_("syntax error"));
#else
      {
	YYSIZE_T yysize = yysyntax_error (0, yystate, yychar);
	if (yymsg_alloc < yysize && yymsg_alloc < YYSTACK_ALLOC_MAXIMUM)
	  {
	    YYSIZE_T yyalloc = 2 * yysize;
	    if (! (yysize <= yyalloc && yyalloc <= YYSTACK_ALLOC_MAXIMUM))
	      yyalloc = YYSTACK_ALLOC_MAXIMUM;
	    if (yymsg != yymsgbuf)
	      YYSTACK_FREE (yymsg);
	    yymsg = (char *) YYSTACK_ALLOC (yyalloc);
	    if (yymsg)
	      yymsg_alloc = yyalloc;
	    else
	      {
		yymsg = yymsgbuf;
		yymsg_alloc = sizeof yymsgbuf;
	      }
	  }

	if (0 < yysize && yysize <= yymsg_alloc)
	  {
	    (void) yysyntax_error (yymsg, yystate, yychar);
	    yyerror (yymsg);
	  }
	else
	  {
	    yyerror (YY_("syntax error"));
	    if (yysize != 0)
	      goto yyexhaustedlab;
	  }
      }
#endif
    }



  if (yyerrstatus == 3)
    {
      /* If just tried and failed to reuse lookahead token after an
	 error, discard it.  */

      if (yychar <= YYEOF)
	{
	  /* Return failure if at end of input.  */
	  if (yychar == YYEOF)
	    YYABORT;
	}
      else
	{
	  yydestruct ("Error: discarding",
		      yytoken, &yylval);
	  yychar = YYEMPTY;
	}
    }

  /* Else will try to reuse lookahead token after shifting the error
     token.  */
  goto yyerrlab1;


/*---------------------------------------------------.
| yyerrorlab -- error raised explicitly by YYERROR.  |
`---------------------------------------------------*/
yyerrorlab:

  /* Pacify compilers like GCC when the user code never invokes
     YYERROR and the label yyerrorlab therefore never appears in user
     code.  */
  if (/*CONSTCOND*/ 0)
     goto yyerrorlab;

  /* Do not reclaim the symbols of the rule which action triggered
     this YYERROR.  */
  YYPOPSTACK (yylen);
  yylen = 0;
  YY_STACK_PRINT (yyss, yyssp);
  yystate = *yyssp;
  goto yyerrlab1;


/*-------------------------------------------------------------.
| yyerrlab1 -- common code for both syntax error and YYERROR.  |
`-------------------------------------------------------------*/
yyerrlab1:
  yyerrstatus = 3;	/* Each real token shifted decrements this.  */

  for (;;)
    {
      yyn = yypact[yystate];
      if (yyn != YYPACT_NINF)
	{
	  yyn += YYTERROR;
	  if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR)
	    {
	      yyn = yytable[yyn];
	      if (0 < yyn)
		break;
	    }
	}

      /* Pop the current state because it cannot handle the error token.  */
      if (yyssp == yyss)
	YYABORT;


      yydestruct ("Error: popping",
		  yystos[yystate], yyvsp);
      YYPOPSTACK (1);
      yystate = *yyssp;
      YY_STACK_PRINT (yyss, yyssp);
    }

  *++yyvsp = yylval;


  /* Shift the error token.  */
  YY_SYMBOL_PRINT ("Shifting", yystos[yyn], yyvsp, yylsp);

  yystate = yyn;
  goto yynewstate;


/*-------------------------------------.
| yyacceptlab -- YYACCEPT comes here.  |
`-------------------------------------*/
yyacceptlab:
  yyresult = 0;
  goto yyreturn;

/*-----------------------------------.
| yyabortlab -- YYABORT comes here.  |
`-----------------------------------*/
yyabortlab:
  yyresult = 1;
  goto yyreturn;

#if !defined(yyoverflow) || YYERROR_VERBOSE
/*-------------------------------------------------.
| yyexhaustedlab -- memory exhaustion comes here.  |
`-------------------------------------------------*/
yyexhaustedlab:
  yyerror (YY_("memory exhausted"));
  yyresult = 2;
  /* Fall through.  */
#endif

yyreturn:
  if (yychar != YYEMPTY)
     yydestruct ("Cleanup: discarding lookahead",
		 yytoken, &yylval);
  /* Do not reclaim the symbols of the rule which action triggered
     this YYABORT or YYACCEPT.  */
  YYPOPSTACK (yylen);
  YY_STACK_PRINT (yyss, yyssp);
  while (yyssp != yyss)
    {
      yydestruct ("Cleanup: popping",
		  yystos[*yyssp], yyvsp);
      YYPOPSTACK (1);
    }
#ifndef yyoverflow
  if (yyss != yyssa)
    YYSTACK_FREE (yyss);
#endif
#if YYERROR_VERBOSE
  if (yymsg != yymsgbuf)
    YYSTACK_FREE (yymsg);
#endif
  /* Make sure YYID is used.  */
  return YYID (yyresult);
}



/* Line 1675 of yacc.c  */
#line 5262 "parser.y"

int CheckBeforeMerge(struct Attribute* a1,struct Attribute* a2){ //For arithmatic operations
	int flag=0;
	//int, (char and notstring), long, short, float.double ke alava kuch ho to operation not valid.
	if(!((a1->specifier==2 && a1->isString==0)||(a1->specifier==4)||(a1->specifier==5)||(a1->specifier==6)||(a1->specifier==7)||(a1->qualifier==1&&a1->isString!=1)))
	{
	    flag=1;
	}
	if(!((a2->specifier==2 && a2->isString==0)||(a2->specifier==4)||(a2->specifier==5)||(a2->specifier==6)||(a2->specifier==7)||(a1->qualifier==1&&a1->isString!=1)))
	{
	    flag=1;
	}
	if(a1->isFunction==1 || (a1->isPointer==1) || a2->isFunction==1 || (a2->isPointer==1))
	{
	    flag=1;
	}
	return flag;
}

struct Attribute * MergeAttributes3Code(struct Attribute* a1,struct Attribute* a2){	//For arithmatic operations
	struct Attribute *a=(struct Attribute*)malloc(sizeof(struct Attribute));
	a->isArray=0;
	a=initAttr(a);
	if((a1->specifier==4 || a1->specifier==5) && (a2->specifier==4 || a2->specifier==5))
	{
	    a->specifier=a1->specifier;
	    if(a2->specifier==5)
	    {
		a->specifier=5;
	    }
	}
	else if((a1->specifier==4 || a1->specifier==5) && (a2->specifier==6 || a2->specifier==7))
	{
	    a->specifier=a2->specifier;	    
	}
	else if((a1->specifier==6 || a1->specifier==7) && (a2->specifier==4 || a2->specifier==5))
	{
	    a->specifier=a1->specifier;	    
	}
	a->type=a->specifier*100;
	return a;
}
	
struct Attribute * initAttr(struct Attribute* dest){
	//dest->Type[0]='\0'; 
	int i=0;
	dest->id=NULL;
	dest->type=0;	
	dest->isArray=0;		// True if variable is array
	dest->ArrayLimit=0;	// upper limit of array (valid if DIMENSION is true)
	dest->width=0;
	//dest->isptrConst=0;
	dest->isPointer=0;
	dest->qualifier=0;
	dest->specifier=0;
	dest->storage=0;
	dest->scope=0;
	dest->IntConstValue=0;		// because this g++ compiler set 4 byte for long but we are setting 8 bytes
	dest->IntConst=0;
	dest->FloatConstValue=0;			// to store the value of double or float
	dest->StringValue=NULL;
	dest->isString=0;
	dest->code=NULL;	//For intermediate code generation	//  
	dest->icode=NULL;
	dest->offset=0;			// 0 means not
	dest->numParameters=0;
	//dest->isdoubleptr=0;
	dest->isFunction=0;
	for(i=0;i<MaxPar;i++)
	  dest->ParameterList[i]=NULL;

	//return dest;
	//class_definition=0;
//	set_temp 0;
	return dest;
	
}

struct Attribute *PassSymEntry(struct SymEntry *a1)
{
	int i=0;
	struct Attribute *a=(struct Attribute*)malloc(sizeof(struct Attribute));
	if(a1->id!=NULL)
	{
	      a->id=(char *)malloc(sizeof(char)*strlen(a1->id)+1);
	      strcpy(a->id,a1->id);
	}
	else
	{
	      a->id=NULL;
	}
	a->type=a1->type;
	a->isArray=a1->isArray;
	a->ArrayLimit=a1->ArrayLimit;
	a->isPointer=a1->isPointer;
	a->scope=a1->scope;
	a->isFunction=a1->isFunction;
	a->isString=0;
	a->offset=a1->offset;
	a->numParameters=a1->numParameters;
	a->code=NULL;
	a->icode=NULL;
	a->StringValue=NULL;
	a->IntConstValue=0;		// because this g++ compiler set 4 byte for long but we are setting 8 bytes
	a->IntConst=0;
	a->specifier=0;
	a->qualifier=0;
	a->storage=0;
	a->FloatConstValue=0;
	//ParameterList
	for(i=0;i<MaxPar;i++)
	{
	    if(a1->ParameterList[i]==NULL)
	    {
		  break;
	    }
	    a->ParameterList[i]=a1->ParameterList[i];
	}
	return a;
}
struct Attribute *PassAttribute(struct Attribute *a1)
{	
	int i=0;
	struct Attribute *a=(struct Attribute*)malloc(sizeof(struct Attribute));
	if(a1->id!=NULL)
	{
	      a->id=(char *)malloc(sizeof(char)*strlen(a1->id)+1);
	      strcpy(a->id,a1->id);
	}
	else
	{
	      a->id=NULL;
	}
	a->type=a1->type;
	a->isArray=a1->isArray;
	a->ArrayLimit=a1->ArrayLimit;
	a->width=a1->width;
	a->isPointer=a1->isPointer;
	a->qualifier=a1->qualifier;
	a->specifier=a1->specifier;
	a->storage=a1->storage;
	a->scope=a1->scope;
	a->IntConstValue=a1->IntConstValue;
	a->IntConst=a1->IntConst;
	a->FloatConstValue=a1->FloatConstValue;
	a->isFunction=a1->isFunction;
	a->isString=a1->isString;
	a->offset=a1->offset;
	a->numParameters=a1->numParameters;
	if(a1->StringValue!=NULL)
	{
	      a->StringValue=(char *)malloc(sizeof(char)*strlen(a1->StringValue)+1);
	      strcpy(a->StringValue,a1->StringValue);
	}
	else
	{
	      a->StringValue=NULL;
	}
	if(a1->code!=NULL &&a1->icode!='\0')
	{
	      a->code=replicate(a1->code);
	      //a->code=(char *)malloc(sizeof(char)*strlen(a1->code)+1);
	      //strcpy(a->code,a1->code);
	}
	else
	{
	      a->code=(char *)malloc(sizeof(char)*2);		
	      strcpy(a->code,"");
			
	}
	if(a1->icode!=NULL &&a1->icode!='\0')
	{//printf("\n---------\n");
	      a->icode=replicate(a1->icode);
	      //a->icode=(char *)malloc(sizeof(char)*strlen(a1->icode)+1);
	      //strcpy(a->icode,a1->icode);
	}
	else
	{
	      	a->icode=(char *)malloc(sizeof(char)*2);
		strcpy(a->icode,"");
	}
	//ParameterList
	for(i=0;i<a1->numParameters;i++)
	{
	    if(a1->ParameterList[i]==NULL)
	    {
		  break;
	    }
	    a->ParameterList[i]=PassAttribute(a1->ParameterList[i]);
	}
	return a;
}

void PrintAttribute(struct Attribute *a)
{	
	if(a==NULL)
	{
	    printf("Attribute is not defined Yet\n");
	}
	else
	{
	      int i=0;
	      printf("\nAttribute ID : ");
	      if(a->id!=NULL)
	      {	
		    printf("%s",a->id);
	      }
	      printf(",Type :%d ,isArray :%d ,ArrayLimit :%d ,width :%d ,",a->type,a->isArray,a->ArrayLimit,a->width);
	      printf("isPointer :%d ,qualifier :%d ,specifier :%d ,storage :%d ,",a->isPointer,a->qualifier,a->specifier,a->storage);
	      printf("scope :%d ,IntConstValue :%lli ,IntConst :%d ,FloatConstValue :%f ,",a->scope,a->IntConstValue,a->IntConst,a->FloatConstValue);
	      
	      if(a->StringValue!=NULL)
	      {	
		    printf("StringValue : %s ,",a->StringValue);
	      }
	      printf("isFunction : %d ,numParameters %d ,isString : %d ,offset : %d ,",a->isFunction,a->numParameters,a->isString,a->offset);
	      if(a->code!=NULL)
	      {	
		    printf("Code :\n %s \n",a->code);
	      }
	      if(a->code!=NULL)
	      {	
		    printf("Intermediate Code :\n %s \n",a->icode);
	      }
	      printf(" Parameters :");
	      for(i=0;i<a->numParameters;i++)
	      {
		  printf("Parameter %d\n",(i+1));
		  if(a->ParameterList[i]==NULL)
		  {
			break;
		  }
		  
		  PrintAttribute(a->ParameterList[i]);
	      }
	      printf(" Attribute Printed \n");
	}
}
void PrintSymEntry(struct SymEntry *a)
{	
	if(a==NULL)
	{
	    printf("SymEntry is not defined Yet\n");
	}
	else
	{
	      int i=0;
	      printf("\nSymEntry ID : ");
	      if(a->id!=NULL)
	      {	
		    printf("%s",a->id);
	      }
	      printf(",Type :%d ,isArray :%d ,ArrayLimit :%d ,width :%d ,",a->type,a->isArray,a->ArrayLimit,a->width);
	      printf("isPointer :%d ,",a->isPointer);
	      printf("scope :%d ,",a->scope);
	      
	      printf("isFunction : %d ,numParameters %d ,offset : %d ,",a->isFunction,a->numParameters,a->offset);	      
	      printf(" Parameters :");
	      for(i=0;i<a->numParameters;i++)
	      {
		  if(a->ParameterList[i]==NULL)
		  {
			break;
		  }
		  printf("Parameter %d\n",(i+1));
		  PrintAttribute(a->ParameterList[i]);
	      }
	      printf(" SymEntry Printed \n");
	}
}


main()
{

	char * outfilename = malloc (100);
	strcpy (outfilename, "/home/agasheesh/w.s");
	fcgFile = fopen (outfilename, "w");

	fprintf(fcgFile , "\t.data\n");
	fprintf(fcgFile , "str:\n");
	fprintf(fcgFile , ".asciiz \" : is answer \\n\"\n");
	fprintf(fcgFile , ".text\n");
	fprintf(fcgFile , ".globl main\n");
	//fprintf(fcgFile , "main:\n");
	
	char * outfilename1 = malloc (100);
	strcpy (outfilename1, "IntermediateCode.txt");
	icgFile = fopen (outfilename1, "w");
	
        InitializeSymTable(-1); //Type = -1 for keywords.
	DEBUGP=0;
	printcode=replicate("");
	temp_inherited = (struct Attribute*)malloc(sizeof (struct Attribute));
	temp_inherited = initAttr(temp_inherited);
	temp_Parameters = (struct Attribute*)malloc(sizeof (struct Attribute));
	temp_Parameters = initAttr(temp_Parameters);
	temp_expression = (struct Attribute*)malloc(sizeof (struct Attribute));
	temp_expression = initAttr(temp_expression);

	do{
		yyparse();
	}while(!feof(yyin));
	char *str="i";
	struct SymEntry * p=lookup(str,function);
	//if(p==NULL)
	    //printf("\nVarible i not found\n");
	//else 
	   // printf("\nVarible i found in linenum %d\n",p->linenum);
	//PrintSymTable();

	fclose (fcgFile);fclose (icgFile);

}
yyerror(s)
char *s;
{
	fflush(stdout);
	printf("\nSyntax Error on Line %d\n",linenumber);//"\n\n%*s\n%*s\n", column, "^", column, s);
}


